]> gitweb.pimeys.fr Git - bots/josh.git/blobdiff - josh.py
Proper realname
[bots/josh.git] / josh.py
diff --git a/josh.py b/josh.py
index e4c4da126016b8fb54533c70f6eff9287bd0c681..a96aa257483cd3922fe1bdf48a09d9f62cfb5578 100755 (executable)
--- a/josh.py
+++ b/josh.py
@@ -72,7 +72,7 @@ class Josh(ircbot.SingleServerIRCBot):
     def __init__(self, serveur, debug=False):
         temporary_pseudo = config.irc_pseudo + str(random.randrange(10000,100000))
         ircbot.SingleServerIRCBot.__init__(self, [(serveur, 6667)],
-                              temporary_pseudo, "Basile, le bot irc. [Codé par 20-100]", 10)
+                              temporary_pseudo, "I'm a bot. Ask [20-100].", 10)
         self.debug = debug
         self.serveur = serveur
         self.overops = config.overops
@@ -398,6 +398,8 @@ class Josh(ircbot.SingleServerIRCBot):
                     answer = random.choice(config.tag_answers)
                     for ligne in answer.split("\n"):
                         serv.privmsg(canal, "%s: %s" % (auteur, ligne.encode("utf8")))
+        if isit.is_allah(message):
+            serv.kick(canal, auteur, u"Please go spread your proselytism somewhere else.")
 
     def on_action(self, serv, ev):
         """À la réception d'une action."""