import DiscordJS, { Intents } from 'discord.js'
import WOKCommands from 'wokcommands'
const client = new DiscordJS.Client({
// These intents are recommended for the built in help menu
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
client.on('ready', () => {
new WOKCommands(client, {
// The name of the local folder for your command files
commandsDir: path.join(__dirname, 'commands'),
// Allow importing of .ts files if you are using ts-node
.setDisplayName('Bot demo')
client.login('YOUR TOKEN HERE')