azury-djs
Version:
Azury-djs, the best NPM Package you can have, with fun Minigames, button interactions, and more! Fun for your bot!
34 lines (32 loc) • 1.17 kB
Markdown
# Example for Guess The Number
```js
await GuessTheNumber({
message: message,
embed: {
title: 'Guess The Number | Weky Development',
description: 'You have **{{time}}** to guess the number.',
color: '#5865F2',
footer: '©️ Weky Development',
timestamp: true
},
publicGame: true,
number: 189,
time: 60000,
winMessage: {
publicGame:
'GG, The number which I guessed was **{{number}}**. <@{{winner}}> made it in **{{time}}**.\n\n__**Stats of the game:**__\n**Duration**: {{time}}\n**Number of participants**: {{totalparticipants}} Participants\n**Participants**: {{participants}}',
privateGame:
'GG, The number which I guessed was **{{number}}**. You made it in **{{time}}**.',
},
loseMessage:
'Better luck next time! The number which I guessed was **{{number}}**.',
bigNumberMessage: 'No {{author}}! My number is greater than **{{number}}**.',
smallNumberMessage:
'No {{author}}! My number is smaller than **{{number}}**.',
othersMessage: 'Only <@{{author}}> can use the buttons!',
buttonText: 'Cancel',
ongoingMessage:
"A game is already runnning in <#{{channel}}>. You can't start a new one!",
returnWinner: false
});
```