silly goober bot

fix: use option_env macro such that we know the build rev at compile time

+1 -2
+1 -2
src/commands/bot/bot.rs
··· 1 1 use crate::Context; 2 2 use color_eyre::eyre::Result; 3 3 use poise::{serenity_prelude::CreateEmbed, CreateReply}; 4 - use std::env; 5 4 6 5 /// Displays information about the bot 7 6 #[poise::command(slash_command)] 8 7 pub async fn botinfo(ctx: Context<'_>) -> Result<()> { 9 - let rev = env::var("BUILD_REV").unwrap_or("unknown".to_string()); 8 + let rev = option_env!("BUILD_REV").unwrap_or("unknown"); 10 9 11 10 let embed = CreateReply::default().embed( 12 11 CreateEmbed::default()