summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 "))