2023-11-23 22:15:47 +01:00
|
|
|
#![warn(clippy::style, clippy::pedantic)]
|
|
|
|
|
2023-11-22 21:38:21 +01:00
|
|
|
mod db;
|
|
|
|
mod discord;
|
2024-01-18 02:31:53 +01:00
|
|
|
mod utils;
|
2023-11-22 21:38:21 +01:00
|
|
|
|
|
|
|
use std::error::Error;
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() -> Result<(), Box<dyn Error>> {
|
|
|
|
utils::setup_logging();
|
2024-01-18 02:31:53 +01:00
|
|
|
color_eyre::install()?;
|
2023-11-22 21:38:21 +01:00
|
|
|
|
2023-11-23 22:15:47 +01:00
|
|
|
let bot = discord::make_bot();
|
2023-11-22 21:38:21 +01:00
|
|
|
bot.run().await?;
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|