Skip to content

Commit

Permalink
🔨 Add TicTacToe
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaCoderr authored Jun 15, 2021
1 parent d3eb24a commit 23a7e50
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion commands/buttons/ttt.js
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
E
const Discord = require("discord.js")
const config = require('../../configs/config.json');
const { TicTacToe } = require("weky")

module.exports = {
config: {
name: 'ttt',
description: '',
aliases: ["ttt"],
usage: '<user>',
accessableby: "",
},
run: async (client, message, args) => {

if(!args[0]) return message.channel.send("Please Provide someone to battle with.")
const opponent = message.mentions.users.first()
const game = new TicTacToe({
message: message,
opponent: opponent,
xColor: 'red',
oColor: 'blurple',
xEmoji: '❌',
oEmoji: '0️⃣',
})

game.start()
}
}

0 comments on commit 23a7e50

Please sign in to comment.