Compare commits
No commits in common. "e74f875e3ba99baefa0c79bb4046a2462589bef9" and "1e046e2e19c3f4a45da66cb60a51a02ba998ec3c" have entirely different histories.
e74f875e3b
...
1e046e2e19
7
Cargo.lock
generated
7
Cargo.lock
generated
@ -897,12 +897,6 @@ version = "0.31.1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
|
checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "git-const"
|
|
||||||
version = "1.1.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "aa4f63cc0cd93d91bcc11b46f61db771bc36c405d96043506ae40facd87b31f7"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "glob"
|
name = "glob"
|
||||||
version = "0.3.2"
|
version = "0.3.2"
|
||||||
@ -921,7 +915,6 @@ dependencies = [
|
|||||||
"enum_stringify",
|
"enum_stringify",
|
||||||
"envconfig",
|
"envconfig",
|
||||||
"futures",
|
"futures",
|
||||||
"git-const",
|
|
||||||
"itertools 0.14.0",
|
"itertools 0.14.0",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"log",
|
"log",
|
||||||
|
|||||||
@ -14,7 +14,6 @@ dotenvy = "0.15.7"
|
|||||||
enum_stringify = "0.6.3"
|
enum_stringify = "0.6.3"
|
||||||
envconfig = "0.11.0"
|
envconfig = "0.11.0"
|
||||||
futures = "0.3.31"
|
futures = "0.3.31"
|
||||||
git-const = "1.1.0"
|
|
||||||
itertools = "0.14.0"
|
itertools = "0.14.0"
|
||||||
lazy_static = "1.5.0"
|
lazy_static = "1.5.0"
|
||||||
log = "0.4.27"
|
log = "0.4.27"
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
use git_const::git_hash;
|
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use teloxide::{
|
use teloxide::{
|
||||||
prelude::*,
|
prelude::*,
|
||||||
@ -45,8 +44,6 @@ pub enum AdminCommands {
|
|||||||
Cancel,
|
Cancel,
|
||||||
/// Create new instance of telegram bot
|
/// Create new instance of telegram bot
|
||||||
Deploy { token: String },
|
Deploy { token: String },
|
||||||
/// Get commit hash of this bot
|
|
||||||
Commit,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn admin_command_handler(
|
pub async fn admin_command_handler(
|
||||||
@ -192,12 +189,6 @@ pub async fn admin_command_handler(
|
|||||||
.await?;
|
.await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
AdminCommands::Commit => {
|
|
||||||
let hash = git_hash!();
|
|
||||||
bot.send_message(msg.chat.id, format!("Commit: {hash}"))
|
|
||||||
.await?;
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user