Improve formatting in main.rs
All checks were successful
Build and push container image / build (push) Successful in 6m42s
All checks were successful
Build and push container image / build (push) Successful in 6m42s
This commit is contained in:
parent
7a5e9a6074
commit
a7acb83c94
16
src/main.rs
16
src/main.rs
@ -13,15 +13,13 @@ async fn on_ready(
|
||||
) -> Result<(), Error> {
|
||||
println!("Connected to API as {}", ready.user.name);
|
||||
|
||||
serenity::ChannelId(865673694184996888).send_message(&ctx.http, |m| {
|
||||
m.embed(|e|
|
||||
e.color(COLOR)
|
||||
.thumbnail(ready.user.avatar_url().unwrap_or_default())
|
||||
.author(|a|
|
||||
a.name(format!("{} is ready!", ready.user.name))
|
||||
)
|
||||
)
|
||||
}).await?;
|
||||
serenity::ChannelId(865673694184996888).send_message(&ctx.http, |m| m.embed(|e|
|
||||
e.color(COLOR)
|
||||
.thumbnail(ready.user.avatar_url().unwrap_or_default())
|
||||
.author(|a|
|
||||
a.name(format!("{} is ready!", ready.user.name))
|
||||
)
|
||||
)).await?;
|
||||
|
||||
let register_commands = std::env::var("REGISTER_CMDS").unwrap_or_else(|_| String::from("true")).parse::<bool>().unwrap_or(true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user