smol bot
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index ea43871..fed3c1d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,11 +1,14 @@ #![feature(let_chains, iter_intersperse, if_let_guard, const_mut_refs)] -use std::{sync::OnceLock, time::Instant}; +use std::{net::SocketAddr, sync::OnceLock, time::Instant}; +mod expose; #[macro_use] mod bot; static START: OnceLock<Instant> = OnceLock::new(); #[tokio::main(flavor = "current_thread")] async fn main() { START.get_or_init(|| Instant::now()); + expose::Server::spawn(<SocketAddr as std::str::FromStr>::from_str("0.0.0.0:2000").unwrap()) + .await; bot::Bot::spawn().await; } |