smol bot
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 4963eae..6d43592 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,14 +12,19 @@ emojib::the_crate! {} use std::{net::SocketAddr, sync::OnceLock, time::Instant}; +#[cfg(feature = "server")] mod expose; #[macro_use] mod bot; static START: OnceLock<Instant> = OnceLock::new(); #[tokio::main(flavor = "current_thread")] async fn main() { + println!("check clones"); + bot::clone(); START.get_or_init(Instant::now); + #[cfg(feature = "server")] expose::Server::spawn(<SocketAddr as std::str::FromStr>::from_str("0.0.0.0:2000").unwrap()) .await; + #[cfg(not(feature = "server"))] bot::Bot::spawn().await; } |