This is a clone of wonderlandpark/dokdo
Dokdo. Easy Discord bot debugging tool.
It's a debugging tool for discord.js
projects.
npm i Faironic/dokdo-clone#main
const { Discord, GatewayIntentBits } = require('discord.js')
const client = new Discord.Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
],
})
const Dokdo = require('dokdo')
const DokdoHandler = new Dokdo(client, { owners: ["000000000000", "000000000000"] }) // If the owners are not specified then it will use Bot Application ownerID as default for owner option.
client.on('messageCreate', async message => {
if ((message.content.startsWith('!dokdo') || (message.content.startsWith('!dok')) {
DokdoHandler.run(message)
}
})
client.login('super secret token')