queue system improved

This commit is contained in:
2024-08-08 20:46:22 +02:00
parent 772d5d2a97
commit 10b7d4d7e3
23 changed files with 196 additions and 275 deletions

View File

@@ -7,12 +7,9 @@ use crate::{commands::embeds::embed, Context, Error};
/// Rolls a dice
#[poise::command(prefix_command, slash_command, category = "Tools")]
pub async fn dice(ctx: Context<'_>) -> Result<(), Error> {
let dice;
let _ = {
let dice = {
let mut rng = rand::thread_rng();
dice = rng.gen_range(1..7);
rng.gen_range(1..=6)
};
ctx.send(