From 3269dbe3ae06d17bef37cbcd28163d4eaa24ec8f Mon Sep 17 00:00:00 2001 From: Maximilian Waidelich Date: Sat, 2 Mar 2024 18:22:13 +0100 Subject: [PATCH] moved and renamed file --- src/bot/commands.rs | 6 ++++-- src/bot/{setup_command.rs => commands/setup.rs} | 0 src/bot/mod.rs | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) rename src/bot/{setup_command.rs => commands/setup.rs} (100%) diff --git a/src/bot/commands.rs b/src/bot/commands.rs index afbb808..80ee03a 100644 --- a/src/bot/commands.rs +++ b/src/bot/commands.rs @@ -9,7 +9,9 @@ use crate::{ logging, mysql_lib, }; -use super::{checks, setup_command}; +use super::checks; + +mod setup; /// ping command #[poise::command(slash_command, prefix_command)] @@ -116,5 +118,5 @@ pub async fn setup( .await?; return Ok(()); } - setup_command::setup(ctx, role_mention, channel_mention, flag, number, rest).await + setup::setup(ctx, role_mention, channel_mention, flag, number, rest).await } diff --git a/src/bot/setup_command.rs b/src/bot/commands/setup.rs similarity index 100% rename from src/bot/setup_command.rs rename to src/bot/commands/setup.rs diff --git a/src/bot/mod.rs b/src/bot/mod.rs index 2b79304..bf88224 100644 --- a/src/bot/mod.rs +++ b/src/bot/mod.rs @@ -13,7 +13,6 @@ use crate::mysql_lib::NewGuild; mod checks; mod commands; -mod setup_command; /// User data, which is stored and accessible in all command invocations #[derive(Debug)]