feat: Enable Docker deployment and CD
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 8m1s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 8m1s
Closes #8, partially addresses #6
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -1,17 +1,23 @@
|
||||
#![warn(clippy::style, clippy::pedantic)]
|
||||
|
||||
mod utils;
|
||||
mod db;
|
||||
mod discord;
|
||||
mod utils;
|
||||
|
||||
use std::error::Error;
|
||||
|
||||
use tracing::info;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn Error>> {
|
||||
dotenvy::dotenv()?;
|
||||
color_eyre::install()?;
|
||||
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?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user