From a4a9353e1c8f902b7d7b3cf74e3e5b129c214330 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 10 Jul 2023 00:18:36 -0400 Subject: start using poise --- src/commands/bing.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/commands/bing.rs (limited to 'src/commands/bing.rs') diff --git a/src/commands/bing.rs b/src/commands/bing.rs new file mode 100644 index 0000000..ed91bb3 --- /dev/null +++ b/src/commands/bing.rs @@ -0,0 +1,8 @@ +use crate::{Context, Error}; + +/// make sure the wie is alive +#[poise::command(prefix_command)] +pub async fn bing(ctx: Context<'_>) -> Result<(), Error> { + ctx.say("bong!").await?; + Ok(()) +} -- cgit v1.2.3