From 43ac627ec98b65509ce68f30a2073940472b5f24 Mon Sep 17 00:00:00 2001 From: RandomChars <random@chars.jp> Date: Tue, 4 Jan 2022 22:35:25 +0900 Subject: [PATCH] more escape --- discord.go | 1 + 1 file changed, 1 insertion(+) diff --git a/discord.go b/discord.go index cf1a8cb..5d4337c 100644 --- a/discord.go +++ b/discord.go @@ -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 { -- GitLab