From b97a57b933204c34e38f0d5712c60c83158a7ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 22 Aug 2021 19:52:53 +0200 Subject: [PATCH] improve help msg --- src/group_handle.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/group_handle.rs b/src/group_handle.rs index 9b8b5fa..e54eef7 100644 --- a/src/group_handle.rs +++ b/src/group_handle.rs @@ -407,20 +407,24 @@ impl GroupHandle { Replies and mentions with commands won't be shared.\n\ \n\ **Supported commands:**\n\ - `/ignore, /i` - make the group completely ignore the post\n\ - `/members, /who` - show group members / admins\n\ `/boost, /b` - boost the replied-to post into the group\n\ + `/ignore, /i` - make the group completely ignore the post\n\ `/ping - check that the service is alive" .to_string(), ); if self.config.is_member_only() { + replies.push("`/members, /who` - show group members / admins".to_string()); replies.push("`/leave` - leave the group".to_string()); + } else { + replies.push("/members, /who` - show group admins".to_string()); } if is_admin { replies.push( - "`/add user` - add a member (use e-mail style address)\n\ + "\n\ + **Admin commands:**\n\ + `/add user` - add a member (use e-mail style address)\n\ `/kick, /remove user` - kick a member\n\ `/ban x` - ban a user or a server\n\ `/unban x` - lift a ban\n\