blastmud/blastmud_game/src/message_handler/user_commands.rs

13 lines
422 B
Rust
Raw Normal View History

2022-12-24 13:43:28 +11:00
use crate::message_handler::ListenerSession;
use crate::DResult;
use crate::db::DBPool;
use ansi_macro::ansi;
pub async fn handle(session: &ListenerSession, msg: &str, pool: DBPool) -> DResult<()> {
pool.queue_for_session(session,
&format!(ansi!(
"You hear an echo saying: <bggreen><red>{}<reset>\r\n"
), msg)).await?;
Ok(())
}