require env var login_name
This commit is contained in:
parent
64817f463c
commit
e9578dc8d9
2 changed files with 5 additions and 1 deletions
|
@ -7,5 +7,8 @@ test ModulatingForceBot
|
||||||
|
|
||||||
1. Set the following environment variables ; either on environment variables or in an .env file
|
1. Set the following environment variables ; either on environment variables or in an .env file
|
||||||
|
|
||||||
|
`login_name = <botname>`
|
||||||
|
|
||||||
`access_token = <oath token>`
|
`access_token = <oath token>`
|
||||||
|
|
||||||
`bot_channels = <chnl1>,<chnl2>`
|
`bot_channels = <chnl1>,<chnl2>`
|
||||||
|
|
|
@ -50,7 +50,8 @@ impl BotInstance {
|
||||||
pub fn init() -> BotInstance {
|
pub fn init() -> BotInstance {
|
||||||
dotenv().ok();
|
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();
|
let oauth_token = env::var("access_token").unwrap().to_owned();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue