2 Commits
Author SHA1 Message Date
Elias Wendland 7d7fcb9860 Add check for ollama env
Run cargo test / Run tests (push) Successful in 5m52s
Build Docker Package / build (push) Successful in 9m9s
Build Docker Package / build (release) Canceled after 13s
2026-07-23 17:36:56 +02:00
Elias Wendland 41f8544a6a update git command to ping me silently 2026-07-23 17:34:51 +02:00
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ pub async fn git(ctx: Context<'_>) -> Result<(), Error> {
let msg = format!("Git repo: https://git.ewenlau.net/ewenlau/tg-dev-srv-bot\nIf you'd like to contribute, contact me to get an account.");
edit_response_message(&response, ctx, &msg, false).await?;
let msg = format!("Git repo: https://git.ewenlau.net/ewenlau/tg-dev-srv-bot\nIf you'd like to contribute, contact <@1389325880853270569> to get an account.");
edit_response_message(&response, ctx, &msg, true).await?;
trace_message(&msg, ctx.channel_id().get().to_string(), ctx.guild_id().unwrap().get().to_string()).await;
Ok(())
+5 -1
View File
@@ -1,6 +1,6 @@
use std::env;
use poise::serenity_prelude as sere;
use tracing::{info, error, debug, trace};
use tracing::{info, error, debug, trace, warn};
use tracing_subscriber::EnvFilter;
pub mod commands;
pub mod event_handler;
@@ -48,6 +48,10 @@ async fn main() {
let token = env::var("TG_BOT_DISCORD_TOKEN").expect("Expected a token in the environment");
trace!("Token loaded");
if let Err(_) = env::var("TG_BOT_OLLAMA_HOST") {
warn!("TG_BOT_OLLAMA_HOST not set, AI commands will not work.");
}
info!("Starting bot...");