From: Thorsten Date: Sat, 8 Feb 2020 14:08:08 +0000 (+0100) Subject: remove creepbot X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=2e0e372d09af4f4f9eb004df95c4a7265627034f;p=urlbot-v3.git remove creepbot not good for terminal clients --- 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]