Fix poisoned uptime command
All checks were successful
Build and push container image / build (push) Successful in 10m50s
All checks were successful
Build and push container image / build (push) Successful in 10m50s
This commit is contained in:
parent
9e04951265
commit
d39550feea
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -958,7 +958,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kon"
|
name = "kon"
|
||||||
version = "0.2.7"
|
version = "0.2.9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cargo_toml",
|
"cargo_toml",
|
||||||
"gamedig",
|
"gamedig",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "kon"
|
name = "kon"
|
||||||
version = "0.2.7"
|
version = "0.2.9"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -4,7 +4,12 @@ use tokenservice_client::TokenServiceApi;
|
|||||||
pub static EMBED_COLOR: i32 = 0x5a99c7;
|
pub static EMBED_COLOR: i32 = 0x5a99c7;
|
||||||
|
|
||||||
pub static BOT_VERSION: Lazy<String> = Lazy::new(|| {
|
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)
|
format!("v{}", cargo_version)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user