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/teawiespam.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/commands/teawiespam.rs') diff --git a/src/commands/teawiespam.rs b/src/commands/teawiespam.rs index 4964e90..da01af9 100644 --- a/src/commands/teawiespam.rs +++ b/src/commands/teawiespam.rs @@ -1,13 +1,15 @@ use crate::utils; -use crate::{Context, Error}; +use crate::Context; + +use color_eyre::eyre::Result; use log::*; /// teawie will spam you. #[poise::command(slash_command, prefix_command)] -pub async fn teawiespam(ctx: Context<'_>) -> Result<(), Error> { +pub async fn teawiespam(ctx: Context<'_>) -> Result<()> { let gid = ctx.guild_id().unwrap_or_default(); if !utils::is_guild_allowed(gid) { - info!("not running copypasta command in {gid}"); + info!("not running teawiespam command in {gid}"); return Ok(()); } -- cgit v1.2.3