summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-14 17:04:34 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-14 17:04:34 +0100
commit3f9a6b06cd950de131bbf1c20f320f5982c4bd68 (patch)
tree02146f10f46d414f127ea04e892761de4170fc20
parent413820d53747043823bc110efb281ec7669d9f75 (diff)
downloaddiscordbot-3f9a6b06cd950de131bbf1c20f320f5982c4bd68.tar.gz
discordbot-3f9a6b06cd950de131bbf1c20f320f5982c4bd68.zip
accept regions upper case
-rw-r--r--main.py1
1 files changed, 1 insertions, 0 deletions
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