moover_rust/src/message_handler.rs

11 lines
270 B
Rust
Raw Normal View History

2023-07-15 09:18:08 +00:00
use serenity::client::Context;
use serenity::model::channel::Message;
use crate::commands::moove::moove;
pub async fn handle(ctx: Context, msg: Message) {
match moove(ctx.http, msg).await {
Ok(_) => return,
Err(e) => println!("ERROR: {e}")
};
}