Actually hook in to !removebadge (badges.py)

This commit is contained in:
jesopo 2018-12-20 20:51:03 +00:00
parent a837ac3add
commit f1e72d4b4e

View file

@ -55,6 +55,7 @@ class Module(ModuleManager.BaseModule):
self._set_badges(event["user"], badges) self._set_badges(event["user"], badges)
event["stdout"].write("Added '%s' badge" % badge) event["stdout"].write("Added '%s' badge" % badge)
@utils.hook("received.command.removebadge", min_args=1)
def remove_badge(self, event): def remove_badge(self, event):
badge = event["args"] badge = event["args"]
badge_lower = badge.lower() badge_lower = badge.lower()