twitchbot-rs/tests/integration_test.rs

49 lines
No EOL
893 B
Rust

use std::sync::Arc;
use tokio::sync::Mutex;
use twitchbot_rs::{Bot, Command};
use twitchbot_rs::bot::ClientAM;
pub struct Payload {
content: String,
}
// pub struct PingCommand;
//
// impl Command for PingCommand {
// type CommandPayLoad = Payload;
//
// async fn execute(&self, pl_am: Arc<Mutex<Self::CommandPayLoad>>, client_am: ClientAM) {
// let client
// }
//
// fn help(&self) -> String {
// todo!()
// }
//
// fn info(&self) -> String {
// todo!()
// }
// }
#[tokio::test]
async fn main() {
// let bot = Bot::new("");
let login = std::env::var("LOGIN").unwrap();
let oauth = std::env::var("OAUTH").unwrap();
let bot = Bot::new(
login.as_str(),
oauth.as_str(),
Payload { content: String::new() },
);
// bot.add_command()
bot.run().await;
println!("hello world!")
}