tic-tac-toe_killua
v1.0.2
Published
discord.js v13
Downloads
4
Readme
Installation
iscord.js v13+ es requerido.
npm install tic-tac-toe_killua
Uso del paquete:
const { start_game } = require('tic-tac-toe_killua')
const { Client, Intents } = require('discord.js');
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
]
})
client.on('ready', () => {
console.log(`Listo ${client.user.tag}!`);
})
client.on("messageCreate", async (message) => {
if (message.author.bot || !message.guild) return;
let PREFIX = '!'
let command = message.content.slice(PREFIX.length).trim().split(/ +/).shift().toLowerCase();
if (command == 'ttt') {
start_game(message)
}
})
client.login('token');