adjust ignore rules
This commit is contained in:
parent
2879b10625
commit
321060d2d6
1 changed files with 2 additions and 2 deletions
|
|
@ -294,8 +294,8 @@ func (b *Bot) handle(ctx context.Context) {
|
||||||
b.Error(ctx, evt.RoomID, "cannot read message")
|
b.Error(ctx, evt.RoomID, "cannot read message")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// ignore any type apart from text (e.g. reactions, redactions, notices, etc)
|
// ignore notices
|
||||||
if content.MsgType != event.MsgText {
|
if content.MsgType == event.MsgNotice {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
message := strings.TrimSpace(content.Body)
|
message := strings.TrimSpace(content.Body)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue