next #3

Manually merged
sneak merged 7 commits from next into master 2020-09-09 04:34:12 +00:00
Showing only changes of commit 390ddd8c62 - Show all commits

View File

@ -285,9 +285,10 @@ func (b *Bot) HandleMsgFromDebuggingChannel(event *model.WebSocketEvent) {
return
}
// FIXME check and see if the message from mm is a bot message, if so,
// ignore it
pretty.Print(post)
if post.Message == "" {
// null message, we can probably ignore it.
return
}
if matched, _ := regexp.MatchString(`(?:^|\W)shutdown(?:$|\W)`, post.Message); matched {
b.Shutdown()