feat: bump up rust version and a big cleanup
Also added an example .env This will break stuff (briefly)
This commit is contained in:
parent
8ba92cc47e
commit
9452c0ac2e
7 changed files with 825 additions and 681 deletions
|
@ -73,7 +73,7 @@ pub(crate) mod user {
|
|||
// get a list of servers that the user is a member of
|
||||
if let Ok(servers) = get_servers(&db, &command.user.id).await {
|
||||
for server in servers {
|
||||
whitelist_update(&vec![username.to_string()], &server.minecraft, &config.discord_minecraft).await;
|
||||
whitelist_update(&vec![username.to_string()], &server.minecraft, &config.discord_token_minecraft).await;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -236,7 +236,7 @@ pub(crate) mod server {
|
|||
|
||||
let mut result = "Server Information:\n".to_string();
|
||||
for server in get_minecraft_config_server(&db, g_id).await {
|
||||
if let Some(x) = server_information(&server.minecraft, &config.discord_minecraft).await {
|
||||
if let Some(x) = server_information(&server.minecraft, &config.discord_token_minecraft).await {
|
||||
result.push_str(&format!(
|
||||
r#"
|
||||
Name: {name}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue