Skip to content

Commit

Permalink
Merge pull request #101 from 0xEmma/patch-7
Browse files Browse the repository at this point in the history
Update other.py
  • Loading branch information
dimoschi authored Sep 12, 2024
2 parents 8276983 + 4d783de commit 5cbe114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmds/core/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ async def callback(self, interaction: discord.Interaction):

message_body = self.children[1].value
# Slack has no way to disallow @(@everyone calls), so we strip it out and replace it with a safe version
title = title.replace("@", "[at]")
message_body = message_body.replace("@", "[at]")
title = title.replace("@", "[at]").replace("<", "[bracket]")
message_body = message_body.replace("@", "[at]").replace("<", "[bracket]")

response = webhook.send(
text=f"{title} - {message_body}",
Expand Down

0 comments on commit 5cbe114

Please sign in to comment.