Add migration for threads. Add ability to load .env from wd
This commit is contained in:
		@@ -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");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user