]> git.aero2k.de Git - urlbot-v3.git/commitdiff
lowercase keying
authorThorsten <mail@aero2k.de>
Sat, 25 Jan 2020 18:03:54 +0000 (19:03 +0100)
committerThorsten <mail@aero2k.de>
Sat, 25 Jan 2020 18:04:13 +0000 (19:04 +0100)
distbot/bot/bot.py
distbot/plugins/fun.py

index fe3b11297a149e3000dd94485ffe1a9eae12a527..5258b771bdfe0600afaa655f863275154bb5917b 100644 (file)
@@ -122,7 +122,7 @@ class Bot(sleekxmpp.ClientXMPP):
                 self.initialize_actionthreads()
                 self.echo("Worker One available for master.")
 
-            key = shlex.split(msg["body"])
+            key = shlex.split(msg["body"].lower())
 
             # cut the nick from the message
             offset = 0
index 6a75a16f4a7be8d593de2ec348615d63a3c13914..b55051d71546a43170223175e7daa47172498fff 100644 (file)
@@ -162,14 +162,12 @@ class Selfreaction(Worker):
 class Doctor(Worker):
     binding_keys = [
         "#.doctor.#",
-        "#.Doctor.#",
         "#.doktor.#",
-        "#.Doktor.#",
     ]
     description = "machines don't like the doctor."
 
     def parse_body(self, msg):
-        return Action(msg="ELIMINIEREN! ELIMINIEREN!")
+        return Action(msg="ELIMINATE! ELIMINATE!")
 
 
 ALL = [Klammer, Terminate, Unicode, Slap, Consumables, MentalDeficits, Selfreaction, Doctor]