From de8e5314866cd3ed97c5d1a697002c2c95372377 Mon Sep 17 00:00:00 2001 From: xy Date: Mon, 19 Feb 2024 12:03:45 +0900 Subject: [PATCH] Refactor importing statements in discord bot module This commit simplifies the importing statement in the discord bot module. Instead of using a direct hierarchy, the bot class is now exported directly from the 'discord' module. This change reduces the complexity of the import paths and increases readability without affecting functionality. --- src/bin/bootstrap.rs | 2 +- src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/bootstrap.rs b/src/bin/bootstrap.rs index 6da6306..1805ec4 100644 --- a/src/bin/bootstrap.rs +++ b/src/bin/bootstrap.rs @@ -5,7 +5,7 @@ use tokio; use dotenv; -use gpt_discord_bot::discord::bot::Handler; +use gpt_discord_bot::bot::Handler; #[tokio::main] async fn main() { diff --git a/src/lib.rs b/src/lib.rs index 3228a62..520057c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1 +1,2 @@ -pub mod discord; +mod discord; +pub use crate::discord::bot;