Improve help message wording

If're an admin and mess up the `users` list, you won't see "owner"
commands.

If you're just a regular room user (not an admin, not an owner), you'll
only see the `help` command in the `help` message.

Both of these situations may make you wonder:

- is that all there is?
- earlier I saw more commands, so what's going on?

Adding "and accessible to you" hopefully clears things up, or at least
it tries to make the help message more correct.
This commit is contained in:
Slavi Pantaleev
2022-08-30 19:04:44 +03:00
parent 0ba951fbe6
commit 7315013912

View File

@@ -191,7 +191,7 @@ func (b *Bot) sendHelp(ctx context.Context) {
}
var msg strings.Builder
msg.WriteString("The following commands are supported:\n\n")
msg.WriteString("The following commands are supported and accessible to you:\n\n")
for _, cmd := range b.commands {
if !cmd.allowed(evt.Sender, evt.RoomID) {
continue