add 'norecipient' room option, closes #35

This commit is contained in:
Aine
2022-10-07 23:07:57 +03:00
parent 6598e884c4
commit 70ef60c934
4 changed files with 40 additions and 18 deletions

View File

@@ -98,6 +98,15 @@ func (b *Bot) initCommands() commandList {
sanitizer: utils.SanitizeBoolString,
allowed: b.allowOwner,
},
{
key: roomOptionNoRecipient,
description: fmt.Sprintf(
"Get or set `%s` of the room (`true` - hide recipient; `false` - show recipient)",
roomOptionNoRecipient,
),
sanitizer: utils.SanitizeBoolString,
allowed: b.allowOwner,
},
{
key: roomOptionNoSubject,
description: fmt.Sprintf(