DJS-MINIGAMES
This module allows you to make minigames on your discord bot using discord.js. At this time discord-minigames only have the TicTacToe minigame but more mini-games will be available soon.
How to create a discord-minigames client:
const {Client} = require("discord-minigames")
const myAwesomeClient = new Client({
playMoreThanOne: true,
emitEvents: true,
defaultTimeout: 60000,
language: "EN"
})
TICTACTOE
How to create a tictactoe game:
const {TicTacToe} = require("discord-minigames")
new TicTacToe(myAwesomeClient, interaction, user, {
embedColor: "GREEN",
timeout: 60000,
embedFooter: "My awesome TicTacToe",
timeoutEmbedColor: "RED",
xEmoji: "❌",
oEmoji: "⭕",
_emoji: "➖",
}).play()
myAwesomeClient.on("tictactoeEnd", tictactoe => {
console.log(tictactoe)
})
If you want to open an issue, report a bug or do a pull request go to the module GitHub