Make cutoff command case insensitive

pull/1/head
qwewqa 4 years ago
parent e82967bc7d
commit 8991997573
  1. 1
      miyu_bot/commands/cogs/event.py

@ -261,6 +261,7 @@ class Event(commands.Cog):
help='!cutoff 50') help='!cutoff 50')
async def cutoff(self, ctx: commands.Context, tier: str = ''): async def cutoff(self, ctx: commands.Context, tier: str = ''):
def process_tier_arg(tier_arg): def process_tier_arg(tier_arg):
tier_arg = tier_arg.lower()
if tier_arg[0] == 't': if tier_arg[0] == 't':
tier_arg = tier_arg[1:] tier_arg = tier_arg[1:]
if tier_arg[-1] == 'k': if tier_arg[-1] == 'k':

Loading…
Cancel
Save