All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 8m1s
Closes #8, partially addresses #6
26 lines
534 B
Rust
26 lines
534 B
Rust
#![warn(clippy::style, clippy::pedantic)]
|
|
|
|
mod db;
|
|
mod discord;
|
|
mod utils;
|
|
|
|
use std::error::Error;
|
|
|
|
use tracing::info;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<(), Box<dyn Error>> {
|
|
println!("Setting logging up");
|
|
utils::setup_logging();
|
|
info!("Setting up color_eyre");
|
|
color_eyre::install()?;
|
|
info!("Reading from dotenv");
|
|
let _ =
|
|
dotenvy::dotenv().map_err(|_| info!("No .env file found, skipping"));
|
|
info!("Launching bot");
|
|
let bot = discord::make_bot();
|
|
bot.run().await?;
|
|
|
|
Ok(())
|
|
}
|