Fix poisoned uptime command
All checks were successful
Build and push container image / build (push) Successful in 10m50s

This commit is contained in:
toast 2024-04-26 20:13:58 +10:00
parent 9e04951265
commit d39550feea
3 changed files with 8 additions and 3 deletions

2
Cargo.lock generated
View File

@ -958,7 +958,7 @@ dependencies = [
[[package]]
name = "kon"
version = "0.2.7"
version = "0.2.9"
dependencies = [
"cargo_toml",
"gamedig",

View File

@ -1,6 +1,6 @@
[package]
name = "kon"
version = "0.2.7"
version = "0.2.9"
edition = "2021"
[dependencies]

View File

@ -4,7 +4,12 @@ use tokenservice_client::TokenServiceApi;
pub static EMBED_COLOR: i32 = 0x5a99c7;
pub static BOT_VERSION: Lazy<String> = Lazy::new(|| {
let cargo_version = cargo_toml::Manifest::from_path("Cargo.toml").unwrap().package.unwrap().version.unwrap();
let cargo_version = cargo_toml::Manifest::from_path(std::env::var("CARGO_MANIFEST_DIR").unwrap()+"/Cargo.toml")
.unwrap()
.package
.unwrap()
.version
.unwrap();
format!("v{}", cargo_version)
});