feat: add R or D to the name depending on how it was built

This commit is contained in:
Soph :3 2025-09-09 11:37:04 +03:00
parent 96b5dbe2f4
commit a7395d187b

View file

@ -65,6 +65,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let s = tokio::fs::read_to_string("config.hocon").await?;
let conf: Configuration = hocon::de::from_str(&s)?;
let mut mode = "RELEASE";
if cfg!(debug_assertions) {
mode = "DEBUG";
}
let (mut client, event_rx) = Client::new();
let pool = PgPoolOptions::new()
@ -116,9 +120,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let username = {
let ram = ALLOCATOR.allocated() / 1_000_000;
if ram != 0 {
format!("{} 📶{} ms 🐏{} mb ", conf.commands.name, t, ram)
format!("{} 📶{} ms 🐏{} mb [{}]", conf.commands.name, t, ram, mode)
} else {
format!("{} 📶{} ms", conf.commands.name, -t)
format!("{} 📶{} ms [{}]", conf.commands.name, -t, mode)
}
};