Skip to content

Commit b078c69

Browse files
committed
Fixed bot may respond to the bot
1 parent 2579dea commit b078c69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dico_command/bot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ async def verify_prefix(self, message: dico.Message):
7676
return final_prefixes[i]
7777

7878
async def execute_handler(self, message: dico.Message):
79+
if message.author.bot:
80+
return
7981
cont = message.content
8082
if not cont:
8183
return

0 commit comments

Comments
 (0)