init - arche setup, empty API, discord bot

This commit is contained in:
2025-04-29 01:48:49 +02:00
commit c56edaf144
10 changed files with 2910 additions and 0 deletions

18
src/main.rs Normal file
View File

@@ -0,0 +1,18 @@
use std::error::Error;
use tokio::net::TcpListener;
mod discordbot;
mod router;
mod setup;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
setup::dotenv_and_tracing();
let r = router::init();
let l = TcpListener::bind("0.0.0.0:2020").await?;
discordbot::init().await;
axum::serve(l, r).await.unwrap();
Ok(())
}