From 3f9a6b06cd950de131bbf1c20f320f5982c4bd68 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 14 Mar 2017 17:04:34 +0100 Subject: accept regions upper case --- main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'main.py') diff --git a/main.py b/main.py index e250b4e..82de15e 100644 --- a/main.py +++ b/main.py @@ -77,6 +77,7 @@ async def on_command_error(error, ctx): @bot.command() async def vainsocial(region: str, name: str): """Retrieves a player's stats.""" + region = region.lower() if region not in ["na", "eu", "sg", "ea", "sa"]: await bot.say("That region is not supported.") return -- cgit v1.3.1