return Action(msg='/me slaps {}'.format(slapped))
+class Hug(Worker):
+ binding_keys = ["nick.hug.#"]
+ description = "hugs people"
+
+ def parse_body(self, msg):
+ sender = get_nick_from_message(msg)
+ if len(self.used_channel) > 2:
+ slapped = " ".join(self.used_channel[2:])
+ else:
+ slapped = sender
+ return Action(msg='/me hugs {}'.format(slapped))
+
+
class Consumables(Worker):
description = "Om nom nom"
usage = "bot: cake/coffee/kaffee/keks/schnitzel/frühstück [please]"
return Action(msg="ELIMINATE! ELIMINATE!")
-ALL = [Klammer, Terminate, Unicode, Slap, Consumables, MentalDeficits, Selfreaction, Doctor]
+ALL = [Klammer, Terminate, Unicode, Hug, Slap, Consumables, MentalDeficits, Selfreaction, Doctor]