dont send empty message (embed)
This commit is contained in:
parent
fa83aca814
commit
64b3cea7a0
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -175,7 +175,8 @@ class DiscordClient(discord.ext.commands.Bot):
|
|||
async def on_message(self, message):
|
||||
await self.process_commands(message)
|
||||
|
||||
if self.to_return(message.channel.id, message.author):
|
||||
if self.to_return(message.channel.id, message.author) \
|
||||
or not message.content:
|
||||
return
|
||||
|
||||
content = await self.process_message(message)
|
||||
|
|
Loading…
Reference in a new issue