handling string inputs properly

This commit is contained in:
Jason Ji 2017-09-21 18:31:34 -07:00
parent 7c60380ba9
commit 3ecad82a28

View File

@ -121,7 +121,7 @@ async def on_message(message):
if message.content.startswith('!weather'):
await client.send_message(
message.channel,
weather.get_weather(message.content.split()[1:])
weather.get_weather(message.content)
)
if message.content.startswith('!purge'):