mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-12-29 23:03:02 +05:00
remove debug values
This commit is contained in:
parent
5872c6f2bd
commit
09d57aef11
2 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue