From e82967bc7d94ef3e9ed34d5766bebef2f41343a2 Mon Sep 17 00:00:00 2001 From: qwewqa <198e559dbd446d973355f415bdfa34@gmail.com> Date: Sat, 13 Feb 2021 22:49:24 -0500 Subject: [PATCH 1/2] Add fallback for last update time in cutoff command --- miyu_bot/commands/cogs/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miyu_bot/commands/cogs/event.py b/miyu_bot/commands/cogs/event.py index 421bdea..9d049c2 100644 --- a/miyu_bot/commands/cogs/event.py +++ b/miyu_bot/commands/cogs/event.py @@ -305,7 +305,7 @@ class Event(commands.Cog): value=data['points'], inline=True) embed.add_field(name='Last Update', - value=data['lastUpdate'], + value=data['lastUpdate'] or 'None', inline=True) embed.add_field(name='Rate', value=f'{data["rate"]} pts/hr', From 8991997573969e5eb90852f55a4b187df6dd2c99 Mon Sep 17 00:00:00 2001 From: qwewqa <198e559dbd446d973355f415bdfa34@gmail.com> Date: Sat, 20 Feb 2021 15:50:25 -0500 Subject: [PATCH 2/2] Make cutoff command case insensitive --- miyu_bot/commands/cogs/event.py | 1 + 1 file changed, 1 insertion(+) diff --git a/miyu_bot/commands/cogs/event.py b/miyu_bot/commands/cogs/event.py index 9d049c2..7ee131a 100644 --- a/miyu_bot/commands/cogs/event.py +++ b/miyu_bot/commands/cogs/event.py @@ -261,6 +261,7 @@ class Event(commands.Cog): help='!cutoff 50') async def cutoff(self, ctx: commands.Context, tier: str = ''): def process_tier_arg(tier_arg): + tier_arg = tier_arg.lower() if tier_arg[0] == 't': tier_arg = tier_arg[1:] if tier_arg[-1] == 'k':