Environment variables can be defined in .env file instead
This commit is contained in:
parent
27b504012e
commit
dec7cb0236
3 changed files with 8 additions and 5 deletions
src
|
@ -8,11 +8,14 @@ use twitch_irc::message::ServerMessage;
|
|||
use std::env;
|
||||
use std::time::Instant;
|
||||
use rand::Rng;
|
||||
|
||||
use dotenv::dotenv;
|
||||
// mod helpers;
|
||||
|
||||
#[tokio::main]
|
||||
pub async fn main() {
|
||||
|
||||
dotenv().ok();
|
||||
|
||||
let login_name = "modulatingforcebot".to_owned();
|
||||
let oauth_token = env::var("access_token").unwrap().to_owned();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue