You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2b-rs/src/main.rs

20 lines
445 B
Rust

use crate::client::get_client;
use crate::utils::logging::init_logger;
pub mod client;
mod commands;
pub mod handler;
mod providers;
pub mod utils;
#[tokio::main]
async fn main() {
init_logger();
let mut client = get_client().await.unwrap();
// start listening for events by starting a single shard
if let Err(why) = client.start().await {
log::error!("An error occurred while running the client: {:?}", why);
}
}