From 76c0f94e6d7aa108424b34826eb7d8514b026287 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 30 Nov 2023 22:18:51 -0500 Subject: feat: use eyre, better logging, & refactor small commits be damned --- src/commands/bing.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/commands/bing.rs') diff --git a/src/commands/bing.rs b/src/commands/bing.rs index ed91bb3..b80ebca 100644 --- a/src/commands/bing.rs +++ b/src/commands/bing.rs @@ -1,8 +1,10 @@ -use crate::{Context, Error}; +use crate::Context; + +use color_eyre::eyre::Result; /// make sure the wie is alive #[poise::command(prefix_command)] -pub async fn bing(ctx: Context<'_>) -> Result<(), Error> { +pub async fn bing(ctx: Context<'_>) -> Result<()> { ctx.say("bong!").await?; Ok(()) } -- cgit v1.2.3