Skip to content
Snippets Groups Projects
Commit 43ac627e authored by Ophestra's avatar Ophestra
Browse files

more escape

parent 3e9ac338
Branches
No related tags found
No related merge requests found
......@@ -153,6 +153,7 @@ func discordHandleCreate(session *discordgo.Session, create *discordgo.MessageCr
msg.Text = strings.ReplaceAll(msg.Text, "[", "\\[")
msg.Text = strings.ReplaceAll(msg.Text, "`", "\\`")
msg.Text = strings.ReplaceAll(msg.Text, ".", "\\.")
msg.Text = strings.ReplaceAll(msg.Text, "!", "\\!")
msg.Text = discordMakeHeader(create.Author) + msg.Text
if m, err := botAPI.Send(msg); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment