Cleanup tweaks

This commit is contained in:
2024-12-21 10:44:42 -05:00
parent 642e2c8d66
commit 4d9ee81ecf
3 changed files with 7 additions and 7 deletions

10
.env
View File

@@ -15,19 +15,19 @@ API_CALLBACK_URI=http://localhost:3000/api/oauth/callback
API_PORT=3000
API_SESSION_TTL=86400
REDIS_HOST=localhost
REDIS_PORT=6379
MINIO_ROOT_USER=siren
MINIO_ROOT_PASSWORD=CHANGEME # Change this to a secure password
MINIO_HOST=localhost
MINIO_PORT=9000
MINIO_PORT_INTERNAL=9001
REDIS_HOST=localhost
REDIS_PORT=6379
# Siren Data integration
DATA_DIR_PATH=
DATA_DIR_PATH= # Optional
# OpenAI
OPENAI_TOKEN= # Optional
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_TOKEN=
OPENAI_MODEL=gpt-4o-mini

View File

@@ -152,7 +152,7 @@ impl EventHandler for BotHandler {
}
async fn resume(&self, _: Context, _: ResumedEvent) {
log::debug!("Resumed");
log::trace!("Resumed");
}
async fn interaction_create(&self, ctx: Context, interaction: Interaction) {

View File

@@ -67,7 +67,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client_secret: String =
env::var("DISCORD_SECRET").expect("Expected a secret in the environment");
let redirect_uri: String =
env::var("API_CALLBACK_URI").expect("Expected a secret in the environment");
env::var("API_CALLBACK_URI").expect("Expected a callback uri in the environment");
let app_state = AppState {
client: HttpClient::new(),
client_id: bot_id.to_string(),