mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
16 lines
458 B
Rust
16 lines
458 B
Rust
use crate::utils::get_list_flags;
|
|
|
|
use super::*;
|
|
|
|
pub fn cmds() -> impl Iterator<Item = Command> {
|
|
let random = ("random", ["rand"]);
|
|
let group = group::group();
|
|
|
|
[
|
|
command!(random => "random_self").flag(group),
|
|
command!(system::targeted(), random => "system_random").flag(group),
|
|
command!(group::targeted(), random => "group_random_member").flags(get_list_flags()),
|
|
]
|
|
.into_iter()
|
|
.map(|cmd| cmd.flag(ALL))
|
|
}
|