refactor(command_parser): simplify how tokens are defined in commands

This commit is contained in:
dusk 2025-01-24 04:08:59 +09:00
parent f804e7629f
commit 071db3d6d6
No known key found for this signature in database
9 changed files with 114 additions and 76 deletions

View file

@ -2,8 +2,8 @@ use super::*;
pub fn cmds() -> impl Iterator<Item = Command> {
[
command!(["thunder"] => "fun_thunder"),
command!(["meow"] => "fun_meow"),
command!("thunder" => "fun_thunder"),
command!("meow" => "fun_meow"),
]
.into_iter()
}