From 9a98193d1fb2e00ec9e0545f78ca2298de56e404 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 2 Sep 2020 16:50:17 -0400 Subject: [PATCH] Prelude: fix prelude group --- youmubot-prelude/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youmubot-prelude/src/lib.rs b/youmubot-prelude/src/lib.rs index 2532a16..0a9c2e9 100644 --- a/youmubot-prelude/src/lib.rs +++ b/youmubot-prelude/src/lib.rs @@ -41,8 +41,8 @@ pub mod prelude_commands { #[command] #[description = "pong!"] - fn ping(ctx: &mut Context, m: &Message) -> CommandResult { - m.reply(&ctx, "Pong!")?; + async fn ping(ctx: &Context, m: &Message) -> CommandResult { + m.reply(&ctx, "Pong!").await?; Ok(()) } }