add noreplies option

This commit is contained in:
Aine
2023-04-10 14:03:43 +03:00
parent e8ade4173f
commit 84102d5b5b
6 changed files with 40 additions and 2 deletions

View File

@@ -104,6 +104,15 @@ func (b *Bot) initCommands() commandList {
sanitizer: utils.SanitizeBoolString,
allowed: b.allowOwner,
},
{
key: config.RoomNoReplies,
description: fmt.Sprintf(
"Get or set `%s` of the room (`true` - ignore matrix replies; `false` - parse matrix replies)",
config.RoomNoReplies,
),
sanitizer: utils.SanitizeBoolString,
allowed: b.allowOwner,
},
{
key: config.RoomNoSender,
description: fmt.Sprintf(