Skip to content

Commit 8db1e31

Browse files
committed
Fix mistake
1 parent b208c6d commit 8db1e31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cogs/automod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ async def search_keyword(self, interaction: discord.Interaction, word: str):
8080
if word in keyword:
8181
count += 1
8282
matches[rule.name].append(f"{keyword} (Regex)")
83-
text = f"Matches for {word}\n"
83+
text = f"Matches for \"{word}\"\n"
8484
if not count:
8585
return await interaction.response.send_message("No match found.")
8686
for rule_name in matches:
8787
if not matches[rule_name]:
8888
continue
89-
text = f' Rule {rule_name}:\n' + ' \n'.join(matches[rule_name])
89+
text += f' Rule {rule_name}:\n' + ' \n'.join(matches[rule_name])
9090
file = text_to_discord_file(text, name='matches.txt')
9191
await interaction.response.send_message(f"{count} matches found.", file=file)
9292

0 commit comments

Comments
 (0)