mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
add g as groups alias for system '<id> groups', add 'random member'
This commit is contained in:
parent
8cad05ccda
commit
e1c61d6272
2 changed files with 3 additions and 1 deletions
|
|
@ -5,11 +5,13 @@ use super::*;
|
|||
pub fn cmds() -> impl Iterator<Item = Command> {
|
||||
let random = ("random", ["rand"]);
|
||||
let group = group::group();
|
||||
let member = member::member();
|
||||
|
||||
[
|
||||
command!(random => "random_self")
|
||||
.help("Shows the info card of a randomly selected member in your system")
|
||||
.flag(group),
|
||||
command!(random, member => "random_self"),
|
||||
command!(random, group => "random_group_self")
|
||||
.help("Shows the info card of a randomly selected group in your system"),
|
||||
command!(random, group::targeted() => "random_group_member_self")
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ pub fn edit() -> impl Iterator<Item = Command> {
|
|||
.map(apply_list_opts);
|
||||
|
||||
let system_groups_cmd = once(
|
||||
command!(system, Optional(SystemRef), "groups", search_param => "system_groups")
|
||||
command!(system, Optional(SystemRef), ("groups", ["g"]), search_param => "system_groups")
|
||||
.help("Lists groups in a system"),
|
||||
)
|
||||
.map(apply_list_opts);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue