Skip to content

Commit

Permalink
fix: Move reponse logic into channel check
Browse files Browse the repository at this point in the history
to not check messages in other channels
  • Loading branch information
GeckoEidechse committed Nov 14, 2024
1 parent e657a32 commit 04fc518
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions reaper/cogs/auto_react_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ async def on_message(self, message):
for emote in emotes:
await message.add_reaction(emote)

result = check_fails_formatting_criteria(message.content)
print(f"{result=}")
if result:
await message.author.send(
f"""
result = check_fails_formatting_criteria(message.content)
print(f"{result=}")
if result:
await message.author.send(
f"""
Thank you for your report ({message.jump_url}), please edit it to match this format:
```
Name:
Expand All @@ -78,7 +78,7 @@ async def on_message(self, message):
Evidence:
```
"""
)
)

self.last_time = datetime.datetime.now(datetime.timezone.utc)
self.last_channel = message.channel.id
Expand Down

0 comments on commit 04fc518

Please sign in to comment.