From 20819a2478848d9e9687fdd026bee17aa7923dff Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 20 Dec 2018 21:04:45 +0000 Subject: [PATCH] Forgot to define `now` in !addbadge (badges.py) --- modules/badges.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/badges.py b/modules/badges.py index 3f3feb8e..728553b4 100644 --- a/modules/badges.py +++ b/modules/badges.py @@ -32,6 +32,8 @@ class Module(ModuleManager.BaseModule): badge_lower = badge.lower() badges = self._get_badges(event["user"]) + now = self._round_up_day(self._now()) + found_badge = None for badge_name in badges.keys(): if badge_name.lower() == badge_lower: