mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-29 08:34:57 +05:00
26 lines
548 B
JavaScript
26 lines
548 B
JavaScript
|
const Command = require("../../base/Command.js"),
|
||
|
TTT = require("discord-tictactoe");
|
||
|
|
||
|
class TicTacToe extends Command {
|
||
|
constructor(client) {
|
||
|
super(client, {
|
||
|
name: "tictactoe",
|
||
|
dirname: __dirname,
|
||
|
enabled: true,
|
||
|
guildOnly: false,
|
||
|
aliases: ["ttt"],
|
||
|
memberPermissions: [],
|
||
|
botPermissions: ["SEND_MESSAGES", "EMBED_LINKS"],
|
||
|
nsfw: false,
|
||
|
ownerOnly: false,
|
||
|
cooldown: 2000
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async run(message, args) {
|
||
|
const game = new TTT({ language: "ru" })
|
||
|
game.handleMessage(message);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = TicTacToe;
|