silly goober bot

refactor: rearange files

+7 -6
src/commands/bot.rs src/commands/bot/bot.rs
+2
src/commands/bot/mod.rs
··· 1 + pub mod bot; 2 + pub mod ping;
+1 -1
src/commands/dice.rs src/commands/fun/dice.rs
··· 10 10 ) -> Result<()> { 11 11 let sides = sides.unwrap_or(6); 12 12 let roll = rand::thread_rng().gen_range(1..=sides); 13 - ctx.say(format!("You rolled a **{}**", roll)).await?; 13 + ctx.say(format!("You rolled a **{roll}**")).await?; 14 14 Ok(()) 15 15 }
+3
src/commands/fun/mod.rs
··· 1 + pub mod bottom; 2 + pub mod dice; 3 + pub mod kittysay;
-2
src/commands/kittysay.rs src/commands/fun/kittysay.rs
··· 7 7 /// Make the kitty say something :3 8 8 #[poise::command(slash_command, guild_only)] 9 9 pub async fn kittysay(ctx: Context<'_>, #[description = "speak"] input: String) -> Result<()> { 10 - print!("Please enter your message: "); 11 - 12 10 let re = Regex::new(r"[^:a-zA-Z0-9\s]").unwrap(); 13 11 let sanitized_input = re.replace_all(&input, "").to_string(); 14 12
+1 -3
src/commands/mod.rs
··· 1 1 pub mod bot; 2 - pub mod kittysay; 3 - pub mod ping; 2 + pub mod fun; 4 3 pub mod user; 5 - pub mod dice;
src/commands/ping.rs src/commands/bot/ping.rs