feat(error-codes): finish error code explanations

This commit is contained in:
DJMrTV 2025-02-14 01:03:42 +01:00
commit f1a56d8e26
7 changed files with 584 additions and 3 deletions

View file

@ -1,4 +1,27 @@
#[tokio::main]
async fn main() {
mod error_codes;
use std::env;
use once_cell::sync::Lazy;
use regex::Regex;
use serenity::async_trait;
use serenity::prelude::*;
#[tokio::main(flavor = "current_thread")]
async fn main() {
dotenv::dotenv().ok();
let token = env::var("PROFESSOR_TOKEN").expect("Token not specified");
let intents = GatewayIntents::GUILD_MESSAGES
| GatewayIntents::MESSAGE_CONTENT;
let mut client = Client::builder(&token, intents)
.event_handler(error_codes::ErrorCodeHandler)
.await.expect("unable to create client");
client.start().await.expect("error running bot");
}