Public Access
Compare commits
2
Commits
a22f5781c2
...
7d7fcb9860
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d7fcb9860 | ||
|
|
41f8544a6a |
+2
-2
@@ -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
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user