adjust ignore rules

This commit is contained in:
Aine
2023-03-23 22:09:11 +02:00
parent 2879b10625
commit 321060d2d6

View File

@@ -294,8 +294,8 @@ func (b *Bot) handle(ctx context.Context) {
b.Error(ctx, evt.RoomID, "cannot read message")
return
}
// ignore any type apart from text (e.g. reactions, redactions, notices, etc)
if content.MsgType != event.MsgText {
// ignore notices
if content.MsgType == event.MsgNotice {
return
}
message := strings.TrimSpace(content.Body)