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