feat: change joke ratio to be less frequent

This commit is contained in:
Ladislav Hano 2024-10-02 21:54:26 +02:00
parent 9a656c7329
commit 54b4dc9a13

View file

@ -47,7 +47,7 @@ pub async fn handle(ctx: Context, msg: Message) {
} }
if random::<u16>() % 1000 == 666 { if random::<u16>() % 10000 == 666 {
match msg.reply(ctx.http(), "Povedz loď").await { match msg.reply(ctx.http(), "Povedz loď").await {
Ok(_) => {}, Ok(_) => {},
Err(e) => send_error(ctx.http.clone(), e.to_string()).await Err(e) => send_error(ctx.http.clone(), e.to_string()).await