From: Thorsten Date: Sat, 25 Jan 2020 18:03:54 +0000 (+0100) Subject: lowercase keying X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=ea488adeba79ba28d748b5e345487c3a3adf217d;p=urlbot-v3.git lowercase keying --- diff --git a/distbot/bot/bot.py b/distbot/bot/bot.py index fe3b112..5258b77 100644 --- a/distbot/bot/bot.py +++ b/distbot/bot/bot.py @@ -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 diff --git a/distbot/plugins/fun.py b/distbot/plugins/fun.py index 6a75a16..b55051d 100644 --- a/distbot/plugins/fun.py +++ b/distbot/plugins/fun.py @@ -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]