skeleton

- bot skeleton for irc
git clone git://git.acid.vegas/skeleton.git
Log | Files | Refs | Archive | README | LICENSE

commit 4af50c243c17afd64bbd29b600bfeffe40b36e9a
parent b20e882809fbbd1502afb9f64a182ec77219c577
Author: acidvegas <acid.vegas@acid.vegas>
Date: Tue, 3 Oct 2023 00:02:22 -0400

color example added

Diffstat:
Mskeleton.py | 2+-

1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/skeleton.py b/skeleton.py
@@ -142,7 +142,7 @@ class Bot():
                 if target.startswith('#'): # Channel message
                     if msg.startswith('!'):
                         if msg == '!hello':
-                            self.sendmsg(chan, f'Hello {nick}!')
+                            self.sendmsg(chan, f'Hello {nick}! Do you like ' + color('colors?', green))
         except (UnicodeDecodeError, UnicodeEncodeError):
             pass # Some IRCds allow invalid UTF-8 characters, this is a very important exception to catch
         except Exception as ex: