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

more escape

parent 3e9ac338
No related branches found
No related tags found
No related merge requests found
...@@ -153,6 +153,7 @@ func discordHandleCreate(session *discordgo.Session, create *discordgo.MessageCr ...@@ -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 = strings.ReplaceAll(msg.Text, ".", "\\.") msg.Text = strings.ReplaceAll(msg.Text, ".", "\\.")
msg.Text = strings.ReplaceAll(msg.Text, "!", "\\!")
msg.Text = discordMakeHeader(create.Author) + msg.Text msg.Text = discordMakeHeader(create.Author) + msg.Text
if m, err := botAPI.Send(msg); err != nil { 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