summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruakci <uakci@uakci.pl>2022-08-13 00:41:20 +0200
committeruakci <uakci@uakci.pl>2022-08-13 00:41:20 +0200
commitf94888379b2443a672a91c18fed4e8c24b7cf46b (patch)
treec495646bbecdce5c7e0742edaecc2e7a4b669c39
parentadd !commands (diff)
downloadnuogai-f94888379b2443a672a91c18fed4e8c24b7cf46b.tar.gz
nuogai-f94888379b2443a672a91c18fed4e8c24b7cf46b.zip
hotfix nuogai misresponding to embeds
-rw-r--r--bot.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.go b/bot.go
index be9aaaf..009346e 100644
--- a/bot.go
+++ b/bot.go
@@ -89,7 +89,7 @@ type Response struct {
}
func Respond(dg *discordgo.Session, ms *discordgo.MessageCreate) {
- if ms.Author.ID == dg.State.User.ID {
+ if ms.Author.ID == dg.State.User.ID || ms.Message.Content == "" {
return
}
log.Printf("\n* %s", strings.Join(strings.Split(ms.Message.Content, "\n"), "\n "))