Add commit tracking

This commit is contained in:
famfo 2023-04-17 12:14:27 +02:00
parent a5339119a7
commit 459760c018
2 changed files with 9 additions and 0 deletions

6
build.rs Normal file
View File

@ -0,0 +1,6 @@
use std::process::Command;
fn main() {
let output = Command::new("git").args(&["rev-parse", "--short", "HEAD"]).output().unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap();
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
}

View File

@ -4,6 +4,9 @@ use async_trait::async_trait;
const HELP: &str = concat!(
"=- \x1d\x02Überbot\x0f ",
env!("CARGO_PKG_VERSION"),
" (",
env!("GIT_HASH"),
")",
" -=\r\n",
" * waifu <category> * grab [count] <user>\r\n",
" * owo/mock/leet [user] * quot <user>\r\n",