From ea488adeba79ba28d748b5e345487c3a3adf217d Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sat, 25 Jan 2020 19:03:54 +0100 Subject: [PATCH] lowercase keying --- distbot/bot/bot.py | 2 +- distbot/plugins/fun.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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] -- 2.39.2