From 73150139126f38c71ce2f41e73aee65f78fe199a Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 30 Aug 2022 19:04:44 +0300 Subject: [PATCH] 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. --- bot/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/command.go b/bot/command.go index 966662f..957b57d 100644 --- a/bot/command.go +++ b/bot/command.go @@ -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