From 4f31e656285fe318043fca1e5bd110a915c469c8 Mon Sep 17 00:00:00 2001 From: Karolis Rusenas Date: Sun, 2 Jun 2019 11:13:18 +0100 Subject: [PATCH] ignoring slack chan join msg --- bot/bot.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/bot.go b/bot/bot.go index d6ebf46e..6b9f69d3 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -204,7 +204,8 @@ func (bm *BotManager) handleCommand(eventText string) string { func (bm *BotManager) handleBotMessage(m *BotMessage) string { command := m.Message - if command == "" { + switch command { + case "", "has joined the channel": return "" }