from irc import Bot

class Tofbot(Bot):
    def dispatch(self, origin, args):
        print ("o=%s a=%s" % (str(origin.sender), args))
        if (args[0] == 'End of /MOTD command.'):
            for chan in self.channels:
                self.write(('JOIN', chan))

@@ -33,16 +33,17 @@
 t(Bot):%0A
+%0A
     def 
@@ -105,12 +105,8 @@
 %22 %25 
-(str
 (ori
@@ -115,17 +115,16 @@
 n.sender
-)
 , args))
@@ -212,16 +212,16 @@
 annels:%0A
-
         
@@ -255,8 +255,450 @@
  chan))%0A
+        if origin.sender is None:%0A            return%0A        chan = args%5B2%5D%0A        msg = args%5B0%5D%0A        if (msg == '!blague'):%0A            self.cmd_blague(chan)%0A        if (msg == '!chuck'):%0A            self.cmd_chuck(chan)%0A%0A    def cmd_blague(self, chan):%0A        self.msg(chan, %22Ceci est une blague%22)%0A%0A    def cmd_chuck(self, chan):%0A        self.msg(chan, %22Chuck Norris can solve the halting problem. He kicks the Turing machine's ass.%22)%0A

Add !chuck and !blague