forked from sorceress/rustcord
Replace function-like group with an attribute macro
This commit is contained in:
parent
27d9c6b1b4
commit
6862e5d90c
|
@ -32,11 +32,9 @@ impl EventHandler for Handler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group!({
|
#[group]
|
||||||
name: "general",
|
#[commands(init, ping, halt, list_srv, host, ship, headpat, uwu, gayculator, waffle, sausage, help, compare_bot, what, owo, info)]
|
||||||
options: {},
|
struct General;
|
||||||
commands: [init, ping, halt, list_srv, host, ship, headpat, uwu, gayculator, waffle, sausage, help, compare_bot, what, owo, info]
|
|
||||||
});
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("Invalid token"), Handler)
|
let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("Invalid token"), Handler)
|
||||||
|
|
Loading…
Reference in New Issue