postmoogle/bot
Slavi Pantaleev 60d3fbbba5 Improve introduction and getters usability
When someone first joins a room, they see some commands (`mailbox`,
`owner`, ..) and they know they are getters and setters, but they have
no good example as to how to use them.

Is it `!pm mailbox SOMETHING` or `!pm mailbox=SOMETHING` or something
else?

It's better if the introduction text gives you the full command you need
to get started (e.g. `!pm mailbox SOME_MAILBOX`), instead of a partial
command that you don't know how to use (e.g. `!pm mailbox` - this is
merely a getter and will not set your mailbox to `SOME_MAILBOX`).

Starting from this, I thought it would be a good idea to make all
option getters tell you how the commands are to be used. If you send
`!pm mailbox` and it tells you "not yet set", it should also tell you
how to actually set it (e.g. `!pm mailbox VALUE`).
2022-08-31 09:08:49 +03:00
..
access.go diff bot and room settings 2022-08-30 14:37:19 +03:00
bot.go adjust initBotUsers() 2022-08-30 18:29:16 +03:00
command.go Improve introduction and getters usability 2022-08-31 09:08:49 +03:00
command_admin.go users adjustments 2022-08-30 15:43:06 +03:00
command_owner.go Improve introduction and getters usability 2022-08-31 09:08:49 +03:00
context.go refactor to context, remove sentry spans 2022-08-25 22:31:12 +03:00
data.go rename account data keys, rearrange code 2022-08-30 14:42:07 +03:00
email.go rename options, rename settings types 2022-08-30 14:45:07 +03:00
message.go proposed changes 2022-08-27 21:59:58 +03:00
mutext.go add per-room mutex, possibly fixes #8 2022-08-27 22:10:22 +03:00
settings_bot.go fix botSettings.Users() 2022-08-30 18:35:10 +03:00
settings_room.go rename options, rename settings types 2022-08-30 14:45:07 +03:00
sync.go rename files; show commands by access level 2022-08-29 15:19:07 +03:00