remove debug values

This commit is contained in:
Jonny_Bro (Nikita) 2024-04-26 21:45:50 +05:00
parent 5872c6f2bd
commit 09d57aef11
No known key found for this signature in database
GPG key ID: 3F1ECC04147E9BD8
2 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ class Number extends BaseCommand {
if (currentGames[interaction.guildId]) return interaction.error("fun/number:GAME_RUNNING");
const participants = [],
number = client.functions.randomNum(100, 101);
number = client.functions.randomNum(1000, 5000);
await interaction.replyT("fun/number:GAME_START");

View file

@ -61,11 +61,11 @@ module.exports = {
/**
* Generates a random integer between the specified minimum and maximum values (inclusive).
*
* @param {number} min - The minimum value (inclusive).
* @param {number} max - The maximum value (inclusive).
* @param {number} [min=0] - The minimum value (inclusive).
* @param {number} [max=100] - The maximum value (inclusive).
* @returns {number} A random integer between min and max.
*/
randomNum(min, max) {
randomNum(min = 0, max = 100) {
min = Math.ceil(min);
max = Math.floor(max);