From 48145aafd4f2d744c2177034856a53e432f16574 Mon Sep 17 00:00:00 2001 From: Distortions81 Date: Wed, 4 Dec 2024 09:33:56 -0700 Subject: [PATCH] fix embed sending twice --- support/pipeHandle.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/support/pipeHandle.go b/support/pipeHandle.go index b28b508c..38dd7afc 100755 --- a/support/pipeHandle.go +++ b/support/pipeHandle.go @@ -1157,14 +1157,8 @@ func handleChatMsg(input *handleData) bool { MessageEmbed /* Send it off! */ - err := disc.SmartWriteDiscordEmbed(cfg.Local.Channel.ChatChannel, myembed) - if err != nil { - /* On failure, send normal message */ - cwlog.DoLogCW("Failed to send chat embed.") - } else { - /* Stop if succeeds */ - return true - } + disc.SmartWriteDiscordEmbed(cfg.Local.Channel.ChatChannel, myembed) + return true } fact.CMS(cfg.Local.Channel.ChatChannel, fbuf) return true