Customizable Rust Twitch Bot
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
readme.md |
Twitch chat bot written in rust
Quick Start
Runs the bot's binary crate
-
Generate a twitch access token
- Get a Bot Chat Token here - https://twitchtokengenerator.com
- More Info - https://dev.twitch.tv/docs/authentication
-
Define an
.env
file with the following
login_name=BOTNAME
access_token=ACCESS_TOKEN
bot_channels=BOTNAME
prefix=`
bot_admins=ADMIN
- Build & run
cargo run
Example Code
Quick Start Main
Uses Env defined variables to create and run the bot
use botcore::bot::Bot;
mod botcore;
#[tokio::main]
pub async fn main() {
/* 1. Create the bot using env */
let bot = Bot::new();
/* 2. Run the bot */
bot.run().await;
}
Crate Rust Documentation
Clean Build Documentation
cargo clean && cargo doc
Open Crate Doc
cargo doc --open