changes
This commit is contained in:
parent
d92125e39f
commit
eae94d069b
5 changed files with 1316 additions and 40 deletions
21
src/main.rs
21
src/main.rs
|
|
@ -1,28 +1,23 @@
|
|||
mod error_codes;
|
||||
mod cheeseburger;
|
||||
mod ayy;
|
||||
mod cheeseburger;
|
||||
mod emergency_report;
|
||||
mod error_codes;
|
||||
mod fest_fax;
|
||||
mod miiverse_mod_application;
|
||||
mod too_fat;
|
||||
mod emergency_report;
|
||||
|
||||
use std::env;
|
||||
use once_cell::sync::Lazy;
|
||||
use regex::Regex;
|
||||
use serenity::async_trait;
|
||||
use serenity::prelude::*;
|
||||
|
||||
|
||||
|
||||
|
||||
use std::env;
|
||||
|
||||
#[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 intents = GatewayIntents::GUILD_MESSAGES | GatewayIntents::MESSAGE_CONTENT;
|
||||
|
||||
let mut client = Client::builder(&token, intents)
|
||||
.event_handler(error_codes::ErrorCodeHandler)
|
||||
|
|
@ -31,7 +26,9 @@ async fn main() {
|
|||
.event_handler(too_fat::TooFatHandler)
|
||||
.event_handler(emergency_report::EmergencyReportHandler::default())
|
||||
.event_handler(miiverse_mod_application::MiiverseModApplicationHandler::default())
|
||||
.await.expect("unable to create client");
|
||||
//.event_handler(fest_fax::FestFaxHandler::default())
|
||||
.await
|
||||
.expect("unable to create client");
|
||||
|
||||
client.start().await.expect("error running bot");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue