better error handling
This commit is contained in:
1 parent
b311c9372a
commit
7bac6ed1a3
2 files changed
+6
-1
No files matched your search
@@ -19,6 +19,10 @@ async def on_message(message):
|
||||
if message.author == discord_client.user:
|
||||
return
|
||||
|
||||
if message.content.isspace():
|
||||
await message.channel.send('### Empty message')
|
||||
return
|
||||
|
||||
response = chat_client.input(message.content)
|
||||
await message.channel.send(response)
|
||||
|
||||
|
||||
Reference in new issue
Block a user