import logging
import random
+import time
from idna import unichr
return Action(msg="ELIMINATE! ELIMINATE!")
-ALL = [Klammer, Terminate, Unicode, Slap, Consumables, MentalDeficits, Selfreaction, Doctor]
+class Sick(Worker):
+ binding_keys = ["nick.#", "quoted_nick.#"]
+ description = "omg a computer virus"
+
+ def parse_body(self, msg):
+ if random.randint(0, 100) > 90:
+ time.sleep(random.randint(1, 5))
+ return Action(msg=random.choice(["/me sneezes", "*cough*"]))
+
+
+ALL = [Klammer, Terminate, Unicode, Slap, Consumables, MentalDeficits, Selfreaction, Doctor, Sick]