]> gitweb.pimeys.fr Git - bots/bbc.git/blobdiff - bbc.py
helpdico dans la config + ajout de l'HELP de OP et DEOP
[bots/bbc.git] / bbc.py
diff --git a/bbc.py b/bbc.py
index a5c798fb69b9ed81da6f6f8adc77261511ab0202..67b610130cd7b31bf10030a8a94564259f9972c4 100755 (executable)
--- a/bbc.py
+++ b/bbc.py
@@ -95,36 +95,10 @@ class Bbc(ircbot.SingleServerIRCBot):
         cmd = message[0].lower()
         notunderstood = False
         if cmd == "help":
-            helpdico = {"help" : ["""HELP <commande>
- Affiche de l'aide sur la commande""", None, None],
- "join" : [None, """JOIN <channel>
- Me fait rejoindre le channel""", None],
- "leave" : [None, """LEAVE <channel>
- Me fait quitter le channel (sauf s'il est dans ma stay_list).""", None],
- "quiet" : [None, """QUIET <channel>
- Me rend silencieux sur le channel.""", None],
- "noquiet" : [None, """NOQUIET <channel>
- Me rend la parole sur le channel.""", None],
- "say" : [None, None, """SAY <channel> <message>
- Me fait parler sur le channel."""],
- "do" : [None, None, """DO <channel> <action>
- Me fait faitre une action (/me) sur le channel."""],
- "stay" : [None, None, """STAY <channel>
- Ajoute le channel à ma stay_list."""],
- "nostay" : [None, None, """NOSTAY <channel>
- Retire le channel de ma stay_list."""],
- "ops" : [None, None, """OPS
- Affiche la liste des ops."""],
- "overops" : [None, None, """OVEROPS
- Affiche la liste des overops."""],
- "kick" : [None, None, """KICK <channel> <pseudo> [<raison>]
- Kicke <pseudo> du channel (Il faut bien entendu que j'y sois op)."""],
- "die" : [None, None, """DIE
- Me déconnecte du serveur IRC."""]
- }
+            helpdico = config.helpdico
             helpmsg_default = "Liste des commandes disponibles :\nHELP"
             helpmsg_ops = " JOIN LEAVE QUIET NOQUIET LOST RECONNECT"
-            helpmsg_overops = " SAY DO STAY NOSTAY OPS OVEROPS KICK DIE"
+            helpmsg_overops = " SAY DO STAY NOSTAY OPS OVEROPS KICK DIE OP DEOP"
             op, overop = auteur in self.ops, auteur in self.overops
             if len(message) == 1:
                 helpmsg = helpmsg_default