refactor: don't use re-exports of eyre & owo-colors
This commit is contained in:
parent
a4abdd72e4
commit
fafa0bf689
33 changed files with 48 additions and 39 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::api::dadjoke;
|
||||
use crate::Context;
|
||||
|
||||
use color_eyre::eyre::Result;
|
||||
use eyre::Result;
|
||||
|
||||
/// It's a joke
|
||||
#[poise::command(slash_command, prefix_command)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{consts, Context};
|
||||
|
||||
use color_eyre::eyre::{eyre, Result};
|
||||
use eyre::{eyre, Result};
|
||||
use poise::serenity_prelude::CreateEmbed;
|
||||
use poise::CreateReply;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::Context;
|
||||
|
||||
use color_eyre::eyre::Result;
|
||||
use eyre::Result;
|
||||
|
||||
/// Replies with pong!
|
||||
#[poise::command(slash_command, prefix_command, ephemeral)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::api::rory;
|
||||
use crate::Context;
|
||||
|
||||
use color_eyre::eyre::Result;
|
||||
use eyre::Result;
|
||||
use poise::serenity_prelude::{CreateEmbed, CreateEmbedFooter};
|
||||
use poise::CreateReply;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::Context;
|
||||
|
||||
use color_eyre::eyre::{eyre, Result};
|
||||
use eyre::{eyre, Result};
|
||||
use poise::serenity_prelude::{CreateEmbed, CreateEmbedAuthor, CreateMessage};
|
||||
|
||||
/// Say something through the bot
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{consts, Context};
|
||||
|
||||
use color_eyre::eyre::{Context as _, Result};
|
||||
use eyre::{Context as _, Result};
|
||||
use poise::serenity_prelude::CreateEmbed;
|
||||
use poise::CreateReply;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ use crate::tags::Tag;
|
|||
use crate::{consts, Context};
|
||||
use std::env;
|
||||
|
||||
use color_eyre::eyre::{eyre, Result};
|
||||
use eyre::{eyre, Result};
|
||||
use once_cell::sync::Lazy;
|
||||
use poise::serenity_prelude::{Color, CreateEmbed, User};
|
||||
use poise::CreateReply;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::Data;
|
||||
|
||||
use color_eyre::eyre::Report;
|
||||
use eyre::Report;
|
||||
use poise::Command;
|
||||
|
||||
mod general;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue