mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 09:10:14 +00:00
remove rest of the parsing in csharp bot
This commit is contained in:
parent
15ffd16c01
commit
479e0a59b5
35 changed files with 242 additions and 409 deletions
|
|
@ -21,9 +21,10 @@ pub fn cmds() -> impl Iterator<Item = Command> {
|
|||
[command!(group_new, ("name", OpaqueString) => "group_new").help("Creates a new group")]
|
||||
.into_iter();
|
||||
|
||||
let group_info_cmd =
|
||||
[command!(group_target => "group_info").help("Shows information about a group")]
|
||||
.into_iter();
|
||||
let group_info_cmd = [command!(group_target => "group_info")
|
||||
.flag(("all", ["a"]))
|
||||
.help("Shows information about a group")]
|
||||
.into_iter();
|
||||
|
||||
let group_name = tokens!(
|
||||
group_target,
|
||||
|
|
@ -159,9 +160,9 @@ pub fn cmds() -> impl Iterator<Item = Command> {
|
|||
|
||||
let group_modify_members_cmd = [
|
||||
command!(group_target, "add", Optional(MemberRefs) => "group_add_member")
|
||||
.flag(("all", ["a"])),
|
||||
.flag(("all", ["a"])).flag(("yes", ["y"])),
|
||||
command!(group_target, ("remove", ["delete", "del", "rem"]), Optional(MemberRefs) => "group_remove_member")
|
||||
.flag(("all", ["a"])),
|
||||
.flag(("all", ["a"])).flag(("yes", ["y"])),
|
||||
]
|
||||
.into_iter();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue