@@ -25,7 +29,7 @@ class IRCBot(irc.client.SimpleIRCClient):
defon_join(self,connection,event):
"""Say hello to other people in the channel. """
connection.privmsg(self.__config.CHANNEL,"Hi, I'm "+connection.get_nickname()+" and your bot. Send !help to get a list of commands.")
connection.privmsg(self.__config.CHANNEL,"Hi, I'm "+Colours('3',str(connection.get_nickname())).get()+" your bot. Send "+Colours(self.num_col,"!help").get()+" to get a list of commands.")
self.__on_connect_cb()
def__handle_msg(self,msg):
...
...
@@ -39,19 +43,19 @@ class IRCBot(irc.client.SimpleIRCClient):
elifmsg=="!list":
answer=""
forentryinself.__db.get_feeds():
answer+="#"+str(entry[0])+": "+entry[1]+", "+entry[2]+", updated every "+str(entry[3])+" min"+"\n"
answer+="#"+Colours(self.num_col,str(entry[0])).get()+": "+entry[1]+", "+Colours('',str(entry[2])).get()+Colours(self.date,", updated every ").get()+Colours(self.num_col,str(entry[3])).get()+Colours(self.date," min").get()+"\n"