You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
576 B

mod db;
mod error;
mod handler;
mod helpers;
use std::env;
use handler::Handler;
use serenity::Client;
async fn main() {
"starting crap Discord bot version {} ...",
let token = env::var("DISCORD_TOKEN").expect("Expected a token in the environment");
let mut client = Client::builder(&token)
.expect("Err creating client");
if let Err(why) = client.start().await {
eprintln!("Client error: {:?}", why);