2025-09-30 18:45:35 +00:00
|
|
|
use crate::utils::get_list_flags;
|
|
|
|
|
|
2025-09-26 23:56:49 +00:00
|
|
|
use super::*;
|
2025-01-04 07:35:04 +09:00
|
|
|
|
2025-09-26 23:56:49 +00:00
|
|
|
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),
|
2025-09-30 18:45:35 +00:00
|
|
|
command!(group::targeted(), random => "group_random_member").flags(get_list_flags()),
|
2025-09-26 23:56:49 +00:00
|
|
|
]
|
|
|
|
|
.into_iter()
|
2025-10-08 04:29:48 +00:00
|
|
|
.map(|cmd| cmd.flag(ALL))
|
2025-09-26 23:56:49 +00:00
|
|
|
}
|