diff options
| author | seth <[email protected]> | 2023-11-30 22:18:51 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-01 07:12:49 -0500 |
| commit | 76c0f94e6d7aa108424b34826eb7d8514b026287 (patch) | |
| tree | 7315bd6dfe52c158041bed64ba39781718a69335 /src/commands/teawiespam.rs | |
| parent | db52e639b85d79bed870020aec7a045851ca5ee3 (diff) | |
feat: use eyre, better logging, & refactor
small commits be damned
Diffstat (limited to 'src/commands/teawiespam.rs')
| -rw-r--r-- | src/commands/teawiespam.rs | 8 |
1 files changed, 5 insertions, 3 deletions
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(()); } |
