|
|
@ -382,21 +382,25 @@ impl GroupHandle { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
StatusCommand::Help => { |
|
|
|
StatusCommand::Help => { |
|
|
|
replies.push("Mention the group user in a top-level post to share it with the group's members.".to_string()); |
|
|
|
replies.push( |
|
|
|
replies.push("Posts with commands won't be shared. Supported commands:".to_string()); |
|
|
|
"To share an original post with the group, mention the group user.\n\ |
|
|
|
replies.push("/ignore, /ign, /i - don't run any commands in the post".to_string()); |
|
|
|
Posts with commands won't be shared. Supported commands:\n\ |
|
|
|
replies.push("/boost, /b - boost the replied-to post into the group".to_string()); |
|
|
|
`/ignore, /i` - make the group completely ignore the post\n\ |
|
|
|
replies.push("/leave - leave the group as a member".to_string()); |
|
|
|
`/boost, /b` - boost the replied-to post into the group\n\ |
|
|
|
|
|
|
|
`/leave` - leave the group as a member".to_string()); |
|
|
|
|
|
|
|
|
|
|
|
if is_admin { |
|
|
|
if is_admin { |
|
|
|
replies.push("/members".to_string()); |
|
|
|
replies.push( |
|
|
|
replies.push("/kick, /remove user - kick a member".to_string()); |
|
|
|
"`/members` - list members and admins\n\ |
|
|
|
replies.push("/add user - add a member".to_string()); |
|
|
|
`/kick, /remove user` - kick a member\n\ |
|
|
|
replies.push("/ban x - ban a user or a server".to_string()); |
|
|
|
`/add user` - add a member\n\ |
|
|
|
replies.push("/unban x - lift a ban".to_string()); |
|
|
|
`/ban x` - ban a user or a server\n\ |
|
|
|
replies.push("/op, /admin user - give admin rights".to_string()); |
|
|
|
`/unban x` - lift a ban\n\ |
|
|
|
replies.push("/unop, /unadmin user - remove admin rights".to_string()); |
|
|
|
`/op, /admin user` - give admin rights\n\ |
|
|
|
replies.push("/opengroup, /closegroup - control posting access".to_string()); |
|
|
|
`/deop, /deadmin user` - remove admin rights\n\ |
|
|
|
|
|
|
|
`/opengroup` - make member-only\n\ |
|
|
|
|
|
|
|
`/closegroup` - make public-access\n\ |
|
|
|
|
|
|
|
`/announce x` - make a public announcement from all that follows".to_string()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
StatusCommand::ListMembers => { |
|
|
|
StatusCommand::ListMembers => { |
|
|
@ -486,7 +490,7 @@ impl GroupHandle { |
|
|
|
Admins: {admins}", user = notif_acct, admins = admins.join(", ")) |
|
|
|
Admins: {admins}", user = notif_acct, admins = admins.join(", ")) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
format!( |
|
|
|
format!( |
|
|
|
"@{user} welcome to the group! This is a public-access group. \ |
|
|
|
"@{user} welcome to the group! \ |
|
|
|
To share a post, tag the group user. Use /help for more info.", user = notif_acct) |
|
|
|
To share a post, tag the group user. Use /help for more info.", user = notif_acct) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|