Commit graph

17 commits

Author SHA1 Message Date
jesopo
9547c116f1 Added !badge (badges.py) 2018-12-20 21:03:21 +00:00
jesopo
fa86ba8827 Always show badge names with the original capitalisation (badges.py) 2018-12-20 21:03:04 +00:00
jesopo
f1e72d4b4e Actually hook in to !removebadge (badges.py) 2018-12-20 20:51:03 +00:00
jesopo
a837ac3add Actually give badge name with update success message (badges.py) 2018-12-20 20:49:51 +00:00
jesopo
24ea68d150 Tell a user when a badge was successfully updated (badges.py) 2018-12-20 20:49:24 +00:00
jesopo
e010d21e4c year/month/day should be an int (badges.py) 2018-12-20 20:48:28 +00:00
jesopo
a43c5ef1f3 actually hook in to command for !resetbadge, format datetime to string before
putting it in a setting in reset_badge (badges.py)
2018-12-20 20:46:45 +00:00
jesopo
dbee856c4d Add !updatebadge to manually set a date on a badge (badges.py) 2018-12-20 20:46:18 +00:00
jesopo
03a3bdd73d Show "day"/"days" alongside day count 2018-12-20 20:30:23 +00:00
jesopo
ba3c1673ad now is already a datetime.date (badges.py) 2018-12-20 20:28:26 +00:00
jesopo
2e032bcc09 round up the current day when checking days since badge was created (badge.py) 2018-12-20 20:26:42 +00:00
jesopo
6d51473a73 Compare .date() when checking days between datetimes (badges.py) 2018-12-20 16:34:21 +00:00
jesopo
568eff01e0 typo in badges.py, 'datettime' -> 'datetime' 2018-12-20 16:32:04 +00:00
jesopo
f98797cd23 to iterate by key,value we need to .items() on dict (badges.py) 2018-12-20 16:31:04 +00:00
jesopo
0f37455665 strf datetime before saving it in settings (badges.py) 2018-12-20 16:30:15 +00:00
jesopo
751c93d59c 'isonow' -> 'utcnow' 2018-12-20 16:29:19 +00:00
jesopo
2a84e18b2e first commit of badge system 2018-12-20 16:28:14 +00:00