Skip to content

Commit

Permalink
Removing orphaned comment and restructuring user notification for fil…
Browse files Browse the repository at this point in the history
…ter_rich_embed
  • Loading branch information
SebastiaanZ committed Jan 7, 2019
1 parent a78ac6d commit 16afa8d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bot/cogs/filtering.py
Expand Up @@ -82,8 +82,8 @@ def __init__(self, bot: Bot):
"notification_msg": (
"Your post has been removed because it contained a rich embed. "
"This indicates that you're either using an unofficial discord client or are using a self-bot, "
"both of which violate Discord's Terms of Service.\n\n"
f"Please don't use a self-bot or an unofficial Discord client on our server. {_staff_mistake_str}"
f"both of which violate Discord's Terms of Service. {_staff_mistake_str}\n\n"
"Please don't use a self-bot or an unofficial Discord client on our server."
)
},
"watch_words": {
Expand Down Expand Up @@ -140,7 +140,6 @@ async def _filter_message(self, msg: Message):
if filter_message:

for filter_name, _filter in self.filters.items():

# Is this specific filter enabled in the config?
if _filter["enabled"]:
# Does the filter only need the message content or the full message?
Expand Down Expand Up @@ -199,7 +198,6 @@ async def _filter_message(self, msg: Message):
additional_embeds=additional_embeds,
)

# If filtering rich embeds, also send the removed embeds to mod_alerts
break # We don't want multiple filters to trigger

@staticmethod
Expand Down

0 comments on commit 16afa8d

Please sign in to comment.