forked from
awoo.ren/fluxer-rs
this repo has no description
1use fluxer_rs::{error::FluxerRsError, fluxerbot::FluxerBot};
2
3use crate::dispatch::ColorbotDispatchHandler;
4
5pub mod commands;
6pub mod dispatch;
7
8#[tokio::main]
9async fn main() -> Result<(), FluxerRsError> {
10 env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("debug")).init();
11
12 let bot = FluxerBot::init(
13 "<your bot token here>",
14 "wss://gateway.fluxer.app?v=1&encoding=json&compress=none",
15 "https://api.fluxer.app/v1",
16 )?;
17
18 bot.start(ColorbotDispatchHandler {}).await;
19
20 Ok(())
21}