Newer
Older
use serenity::prelude::GatewayIntents;
#[tokio::main]
async fn main() {
let config = config::get_conf();
let token = config.token;
let mut client = Client::builder(
&token,
GatewayIntents::GUILD_MESSAGES
.union(GatewayIntents::GUILD_MESSAGE_REACTIONS)
.union(GatewayIntents::MESSAGE_CONTENT),
)
.event_handler(Dispatcher::default())
.await
.expect("Error creating client");
eprintln!("Client error: {}", e);