UNPKG

discord-gamecord-ptbr

Version:

Discord-Gamecord-Ptbr Γ© um fork da package discord-gamecord um pacote poderoso com uma coleΓ§Γ£o de minigames para seu bot discord

29 lines (26 loc) β€’ 896 B
# **πŸ”Ž Find Emoji** ```js const { FindEmoji } = require('discord-gamecord'); const Game = new FindEmoji({ message: message, isSlashGame: false, embed: { title: 'Find Emoji', color: '#5865F2', description: 'Remember the emojis from the board below.', findDescription: 'Find the {emoji} emoji before the time runs out.' }, timeoutTime: 60000, hideEmojiTime: 5000, buttonStyle: 'PRIMARY', emojis: ['πŸ‰', 'πŸ‡', '🍊', 'πŸ‹', 'πŸ₯­', '🍎', '🍏', 'πŸ₯'], winMessage: 'You won! You selected the correct emoji. {emoji}', loseMessage: 'You lost! You selected the wrong emoji. {emoji}', timeoutMessage: 'You lost! You ran out of time. The emoji is {emoji}', playerOnlyMessage: 'Only {player} can use these buttons.' }); Game.startGame(); Game.on('gameOver', result => { console.log(result); // => { result... } }); ```