Cleanup tweaks
This commit is contained in:
10
.env
10
.env
@@ -15,19 +15,19 @@ API_CALLBACK_URI=http://localhost:3000/api/oauth/callback
|
|||||||
API_PORT=3000
|
API_PORT=3000
|
||||||
API_SESSION_TTL=86400
|
API_SESSION_TTL=86400
|
||||||
|
|
||||||
|
REDIS_HOST=localhost
|
||||||
|
REDIS_PORT=6379
|
||||||
|
|
||||||
MINIO_ROOT_USER=siren
|
MINIO_ROOT_USER=siren
|
||||||
MINIO_ROOT_PASSWORD=CHANGEME # Change this to a secure password
|
MINIO_ROOT_PASSWORD=CHANGEME # Change this to a secure password
|
||||||
MINIO_HOST=localhost
|
MINIO_HOST=localhost
|
||||||
MINIO_PORT=9000
|
MINIO_PORT=9000
|
||||||
MINIO_PORT_INTERNAL=9001
|
MINIO_PORT_INTERNAL=9001
|
||||||
|
|
||||||
REDIS_HOST=localhost
|
|
||||||
REDIS_PORT=6379
|
|
||||||
|
|
||||||
# Siren Data integration
|
# Siren Data integration
|
||||||
DATA_DIR_PATH=
|
DATA_DIR_PATH= # Optional
|
||||||
|
|
||||||
# OpenAI
|
# OpenAI
|
||||||
|
OPENAI_TOKEN= # Optional
|
||||||
OPENAI_BASE_URL=https://api.openai.com/v1
|
OPENAI_BASE_URL=https://api.openai.com/v1
|
||||||
OPENAI_TOKEN=
|
|
||||||
OPENAI_MODEL=gpt-4o-mini
|
OPENAI_MODEL=gpt-4o-mini
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ impl EventHandler for BotHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn resume(&self, _: Context, _: ResumedEvent) {
|
async fn resume(&self, _: Context, _: ResumedEvent) {
|
||||||
log::debug!("Resumed");
|
log::trace!("Resumed");
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn interaction_create(&self, ctx: Context, interaction: Interaction) {
|
async fn interaction_create(&self, ctx: Context, interaction: Interaction) {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
let client_secret: String =
|
let client_secret: String =
|
||||||
env::var("DISCORD_SECRET").expect("Expected a secret in the environment");
|
env::var("DISCORD_SECRET").expect("Expected a secret in the environment");
|
||||||
let redirect_uri: String =
|
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 {
|
let app_state = AppState {
|
||||||
client: HttpClient::new(),
|
client: HttpClient::new(),
|
||||||
client_id: bot_id.to_string(),
|
client_id: bot_id.to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user