diff options
| author | uakci <git@uakci.space> | 2023-07-30 17:51:07 +0200 |
|---|---|---|
| committer | uakci <git@uakci.space> | 2023-07-30 17:51:07 +0200 |
| commit | 50f1af5e5b9806cb2477b9274bfc9bf0a72deb8a (patch) | |
| tree | 7487c59245028957ca900f238c0780c70314785f | |
| parent | fix toadua responding to msgs like "!?" (diff) | |
| download | nuogai-50f1af5e5b9806cb2477b9274bfc9bf0a72deb8a.tar.gz nuogai-50f1af5e5b9806cb2477b9274bfc9bf0a72deb8a.zip | |
ignore bot accounts
| -rw-r--r-- | bot.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -106,7 +106,7 @@ func Respond(dg *discordgo.Session, ms *discordgo.MessageCreate) { sigil = "<" } log.Printf("\n%s %s", sigil, strings.Join(strings.Split(ms.Message.Content, "\n"), "\n ")) - if own { + if own || ms.Author.Bot { return } respond(ms.Message.Content, |
