add !pm threadify option, fixes #60

This commit is contained in:
Aine
2023-10-13 22:27:46 +03:00
parent 0d0dcf20b9
commit 1bf8ba4700
6 changed files with 61 additions and 6 deletions

View File

@@ -116,6 +116,15 @@ func (b *Bot) initCommands() commandList {
sanitizer: func(s string) string { return s },
allowed: b.allowOwner,
},
{
key: config.RoomThreadify,
description: fmt.Sprintf(
"Get or set `%s` of the room (`true` - send incoming email body in thread; `false` - send incoming email body as part of the message)",
config.RoomThreadify,
),
sanitizer: utils.SanitizeBoolString,
allowed: b.allowOwner,
},
{
key: config.RoomNoSend,
description: fmt.Sprintf(