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/mod.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/commands/mod.rs') diff --git a/src/commands/mod.rs b/src/commands/mod.rs index b6130ab..5edf0b7 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -6,10 +6,12 @@ pub mod random; pub mod teawiespam; pub mod version; -use crate::{Data, Error}; +use crate::Data; + +use color_eyre::eyre::Report; use poise::Command; -pub fn to_global_commands() -> Vec> { +pub fn to_global_commands() -> Vec> { vec![ ask::ask(), bing::bing(), @@ -21,6 +23,6 @@ pub fn to_global_commands() -> Vec> { ] } -pub fn to_guild_commands() -> Vec> { +pub fn to_guild_commands() -> Vec> { vec![copypasta::copypasta(), teawiespam::teawiespam()] } -- cgit v1.2.3