Compare commits
No commits in common. "24943a34b06ce43adfa5d41fd78f0ae9028ba09b" and "7cfeaa6bdc17a3f40646950b77e7a9ff3cb87317" have entirely different histories.
24943a34b0
...
7cfeaa6bdc
@ -1,7 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "kon"
|
name = "kon"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
rust-version = "1.74"
|
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
@ -55,11 +55,7 @@ async fn main() {
|
|||||||
commands::status::status()
|
commands::status::status()
|
||||||
],
|
],
|
||||||
pre_command: |ctx| Box::pin(async move {
|
pre_command: |ctx| Box::pin(async move {
|
||||||
let get_guild_name = match ctx.guild() {
|
println!("{} ran /{}", ctx.author().name, ctx.command().qualified_name)
|
||||||
Some(guild) => guild.name.clone(),
|
|
||||||
None => String::from("DM")
|
|
||||||
};
|
|
||||||
println!("[{}] {} ran /{}", get_guild_name, ctx.author().name, ctx.command().qualified_name)
|
|
||||||
}),
|
}),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}).setup(|ctx, ready, framework| Box::pin(on_ready(ctx, ready, framework)))
|
}).setup(|ctx, ready, framework| Box::pin(on_ready(ctx, ready, framework)))
|
||||||
|
Loading…
Reference in New Issue
Block a user