Walle-core 是一个 Rust OneBot Lib ( 不同于 libonebot 他同样可以应用于 OneBot 应用端 )
Walle 的名字来源于机械总动员的 WALL-E ( A Rusty Bot )
仅展示最小实例
```rust use walle_core::{ImplConfig, impls::OneBot, DefaultHandler};
async fn main() { let env = tracingsubscriber::EnvFilter::from("Walle-core=trace"); tracingsubscriber::fmt().withenvfilter(env).init(); // 初始化 tracing let config = ImplConfig::default(); let ob = OneBot::new( "Your impl name".toowned(), "Your impl platform".toowned(), "Your bot self id".to_owned(), config, DefaultHandler::arc(), // ActionHandler ).arc(); OneBot::run(ob).await } ```
```rust use walle_core::{AppConfig, app::OneBot, DefaultHandler};
async fn main() { let env = tracingsubscriber::EnvFilter::from("Walle-core=trace"); tracingsubscriber::fmt().withenvfilter(env).init(); // 初始化 tracing let config = AppConfig::default(); let ob = OneBot::new( config, DefaultHandler::arc(), // EventHandler ).arc(); OneBot::run(ob).await } ```