diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-14 17:04:34 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-14 17:04:34 +0100 |
| commit | 3f9a6b06cd950de131bbf1c20f320f5982c4bd68 (patch) | |
| tree | 02146f10f46d414f127ea04e892761de4170fc20 | |
| parent | 413820d53747043823bc110efb281ec7669d9f75 (diff) | |
| download | discordbot-3f9a6b06cd950de131bbf1c20f320f5982c4bd68.tar.gz discordbot-3f9a6b06cd950de131bbf1c20f320f5982c4bd68.zip | |
accept regions upper case
| -rw-r--r-- | main.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |
