do not react on edits and redactions, add section titles in help message

This commit is contained in:
Aine
2022-11-21 23:57:49 +02:00
parent 21772d7360
commit b4d6d992ac
3 changed files with 16 additions and 10 deletions

View File

@@ -3,6 +3,8 @@ package bot
import (
"context"
"strings"
"gitlab.com/etke.cc/postmoogle/utils"
)
func (b *Bot) handle(ctx context.Context) {
@@ -20,7 +22,7 @@ func (b *Bot) handle(ctx context.Context) {
message := strings.TrimSpace(content.Body)
cmd := b.parseCommand(message, true)
if cmd == nil {
if content.RelatesTo != nil {
if utils.EventParent("", content) != "" {
b.SendEmailReply(ctx)
}
return