From a33446e5e75ac4b99afc2b7198232e61b42b9bfe Mon Sep 17 00:00:00 2001 From: Daniel Tam Date: Sat, 13 Jun 2020 17:15:50 -0500 Subject: [PATCH] ignore messages that are too short --- bunnybot.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bunnybot.go b/bunnybot.go index 452ff83..0c94a18 100644 --- a/bunnybot.go +++ b/bunnybot.go @@ -90,6 +90,8 @@ func message_create (s *discordgo.Session, m *discordgo.MessageCreate) { return } + } else { // message too short, don't do anything + return } // get our message's content without our bot's token