From 4af50c243c17afd64bbd29b600bfeffe40b36e9a Mon Sep 17 00:00:00 2001 From: acidvegas Date: Tue, 3 Oct 2023 00:02:22 -0400 Subject: [PATCH] color example added --- skeleton.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skeleton.py b/skeleton.py index e6e3c3c..80b7a49 100644 --- 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: