use std::sync::Arc; use walle_core::action::Action; use walle_core::alt::TracingHandler; use walle_core::config::AppConfig; use walle_core::event::Event; use walle_core::obc::AppOBC; use walle_core::resp::Resp; use walle_core::OneBot; #[tokio::main] async fn main() { tracing_subscriber::fmt::init(); let ob = Arc::new(OneBot::new( AppOBC::new(), TracingHandler::::default(), )); ob.start(AppConfig::default(), (), true).await.unwrap(); // ob.wait_all().await; ob.shutdown(true).await.ok(); }