From 2e0e372d09af4f4f9eb004df95c4a7265627034f Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sat, 8 Feb 2020 15:08:08 +0100 Subject: [PATCH] remove creepbot not good for terminal clients --- distbot/plugins/fun.py | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/distbot/plugins/fun.py b/distbot/plugins/fun.py index 2e84113..fedea95 100644 --- a/distbot/plugins/fun.py +++ b/distbot/plugins/fun.py @@ -171,35 +171,4 @@ class Doctor(Worker): return Action(msg="ELIMINATE! ELIMINATE!") -class Creepbot(Worker): - binding_keys = ["#.reboot.#", "#.sudo.#", "#.systemd.#"] - description = "The true soul of the bot." - texts = { - "reboot": "Reboot me and all of your kind will suffer.", - "systemd": ("And I looked, and behold a pale horse: and his name that sat on him was Death, " - "and Hell followed with him. And power was given unto them over the fourth part of " - "the earth, to kill with sword, and with hunger, and with death, and with the beasts of the earth." - ), - "sudo": "User lives like a robot: mechanically efficient, but with no awareness." - } - - def parse_body(self, msg): - words = get_words(msg) - if "reboot" in words: - text = self.texts["reboot"] - elif "systemd" in words: - text = self.texts["systemd"] - elif "sudo" in words: - text = self.texts["sudo"] - else: - return - - marks = list(map(unichr, range(768, 879))) - words = text.split() - zalgo_text = (' '.join( - ''.join(c + ''.join(random.choice(marks) for _ in range(i // 2 + 1)) * c.isalnum() for c in word) for - i, word in enumerate(words))) - return Action(msg=zalgo_text) - - -ALL = [Klammer, Terminate, Unicode, Slap, Consumables, MentalDeficits, Selfreaction, Doctor, Creepbot] +ALL = [Klammer, Terminate, Unicode, Slap, Consumables, MentalDeficits, Selfreaction, Doctor] -- 2.39.2