diff options
| author | uakci <uakci@uakci.pl> | 2022-08-13 00:41:20 +0200 |
|---|---|---|
| committer | uakci <uakci@uakci.pl> | 2022-08-13 00:41:20 +0200 |
| commit | f94888379b2443a672a91c18fed4e8c24b7cf46b (patch) | |
| tree | c495646bbecdce5c7e0742edaecc2e7a4b669c39 | |
| parent | add !commands (diff) | |
| download | nuogai-f94888379b2443a672a91c18fed4e8c24b7cf46b.tar.gz nuogai-f94888379b2443a672a91c18fed4e8c24b7cf46b.zip | |
hotfix nuogai misresponding to embeds
| -rw-r--r-- | bot.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ")) |
