Skip to content

Commit

Permalink
message react config
Browse files Browse the repository at this point in the history
  • Loading branch information
howardt12345 committed Nov 15, 2023
1 parent c3487f5 commit 75356ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ async def on_ready():
# when someone sends any message
@client.event
async def on_message(message: discord.Message):
# don't respond to bot's own posts
if message.author == client.user:
message_reacts_enabled = client.guilds_dict[message.guild.id][
"message_reacts_enabled"
]

# don't respond to bot's own posts or if message reacts are disabled
if message.author == client.user or not message_reacts_enabled:
return

events = []
Expand Down

0 comments on commit 75356ae

Please sign in to comment.