Skip to content

Commit

Permalink
Refactor importing statements in discord bot module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kasugamirai committed Feb 19, 2024
1 parent 79473f4 commit de8e531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pub mod discord;
mod discord;
pub use crate::discord::bot;

0 comments on commit de8e531

Please sign in to comment.