Customizable Rust Twitch Bot
Find a file
2025-01-26 12:41:44 -05:00
src encap bot 2025-01-26 12:41:44 -05:00
.gitignore init 2025-01-25 11:45:10 -05:00
Cargo.lock init 2025-01-25 11:45:10 -05:00
Cargo.toml init 2025-01-25 11:45:10 -05:00
readme.md encap bot 2025-01-26 12:41:44 -05:00

Twitch chat bot written in rust

Quick Start

Runs the bot's binary crate

  1. Generate a twitch access token

  2. Define an .env file with the following

login_name=BOTNAME
access_token=ACCESS_TOKEN
bot_channels=BOTNAME
prefix=`
bot_admins=ADMIN
  1. 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