require env var login_name

This commit is contained in:
ModulatingForce 2023-12-20 19:12:53 -05:00
parent 64817f463c
commit e9578dc8d9
2 changed files with 5 additions and 1 deletions

View file

@ -7,5 +7,8 @@ test ModulatingForceBot
1. Set the following environment variables ; either on environment variables or in an .env file
`login_name = <botname>`
`access_token = <oath token>`
`bot_channels = <chnl1>,<chnl2>`

View file

@ -50,7 +50,8 @@ impl BotInstance {
pub fn init() -> BotInstance {
dotenv().ok();
let login_name = "modulatingforcebot".to_owned();
// let login_name = "modulatingforcebot".to_owned();
let login_name = env::var("login_name").unwrap().to_owned();
let oauth_token = env::var("access_token").unwrap().to_owned();
/*