feat: bump up rust version and a big cleanup
All checks were successful
On_Push / lint_fmt (push) Successful in 1m9s
On_Push / lint_clippy (push) Successful in 4m4s
On_Push / build (push) Successful in 10m16s
On_Push / deploy (push) Successful in 12s

Also added an example .env

This will break stuff (briefly)
This commit is contained in:
silver 2024-09-17 00:21:07 +01:00
parent 8ba92cc47e
commit 9452c0ac2e
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
7 changed files with 825 additions and 681 deletions

View file

@ -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}