add !pm autoreply

This commit is contained in:
Aine
2023-09-23 17:09:18 +03:00
parent 480c99cf79
commit 8f3a74d46c
5 changed files with 134 additions and 24 deletions

View File

@@ -99,6 +99,12 @@ func (b *Bot) initCommands() commandList {
allowed: b.allowOwner,
},
{allowed: b.allowOwner, description: "mailbox options"}, // delimiter
{
key: config.RoomAutoreply,
description: "Get or set autoreply of the room (markdown supported) that will be send for any new incoming email thread",
sanitizer: func(s string) string { return s },
allowed: b.allowOwner,
},
{
key: config.RoomSignature,
description: "Get or set signature of the room (markdown supported)",