Add migration for threads. Add ability to load .env from wd

This commit is contained in:
jude committed 2023-05-11 18:32:50 +01:00
1 parent 4416e5d175
commit 6e831c8253
2 files changed
+4

No files matched your search

+2
View File
@@ -90,6 +90,8 @@ async fn _main(tx: Sender<()>) -> Result<(), Box<dyn StdError + Send + Sync>> {
if Path::new("/etc/reminder-rs/config.env").exists() {
dotenv::from_path("/etc/reminder-rs/config.env")?;
} else {
dotenv::from_path(".env")?;
}
let discord_token = env::var("DISCORD_TOKEN").expect("Missing DISCORD_TOKEN from environment");