improve help msg

master
Ondřej Hruška 3 years ago
parent 344b984e10
commit b97a57b933
Signed by untrusted user: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 10
      src/group_handle.rs

@ -407,20 +407,24 @@ impl GroupHandle {
Replies and mentions with commands won't be shared.\n\ Replies and mentions with commands won't be shared.\n\
\n\ \n\
**Supported commands:**\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\ `/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" `/ping - check that the service is alive"
.to_string(), .to_string(),
); );
if self.config.is_member_only() { if self.config.is_member_only() {
replies.push("`/members, /who` - show group members / admins".to_string());
replies.push("`/leave` - leave the group".to_string()); replies.push("`/leave` - leave the group".to_string());
} else {
replies.push("/members, /who` - show group admins".to_string());
} }
if is_admin { if is_admin {
replies.push( 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\ `/kick, /remove user` - kick a member\n\
`/ban x` - ban a user or a server\n\ `/ban x` - ban a user or a server\n\
`/unban x` - lift a ban\n\ `/unban x` - lift a ban\n\

Loading…
Cancel
Save