From 321060d2d6002aa3470e343ef69a91e1f6f2767b Mon Sep 17 00:00:00 2001 From: Aine Date: Thu, 23 Mar 2023 22:09:11 +0200 Subject: [PATCH] adjust ignore rules --- bot/command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/command.go b/bot/command.go index 7a88840..3104d54 100644 --- a/bot/command.go +++ b/bot/command.go @@ -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)