Compare commits
No commits in common. "663fb929e2215a9f125e5ca526b8bcdb522ea834" and "d2a1f31a60e68f0c00403e56e5e68c43ccba1a36" have entirely different histories.
663fb929e2
...
d2a1f31a60
@ -6,7 +6,7 @@ use std::process::Command;
|
|||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
const WHITELISTED_USERS: &[UserId] = &[
|
const WHITELISTED_USERS: &[UserId] = &[
|
||||||
UserId(190407856527376384)
|
poise::serenity_prelude::UserId(190407856527376384)
|
||||||
];
|
];
|
||||||
|
|
||||||
/// Evaluate a piece of code
|
/// Evaluate a piece of code
|
||||||
|
10
src/main.rs
10
src/main.rs
@ -11,16 +11,6 @@ async fn on_ready(
|
|||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
println!("Connected to API as {}", ready.user.name);
|
println!("Connected to API as {}", ready.user.name);
|
||||||
|
|
||||||
serenity::ChannelId(865673694184996888).send_message(&ctx.http, |m| {
|
|
||||||
m.embed(|e| {
|
|
||||||
e.color(0xf1d63c)
|
|
||||||
.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);
|
let register_commands = std::env::var("REGISTER_CMDS").unwrap_or_else(|_| String::from("true")).parse::<bool>().unwrap_or(true);
|
||||||
|
|
||||||
if register_commands {
|
if register_commands {
|
||||||
|
Loading…
Reference in New Issue
Block a user