Dokdo. Easy Discord bot debuging tool.
It's debugging tool for discord.js
projects.
Using Discord.js v12?
You could install dokdo@0.4.1
by
npm i dokdo@djsv12
Using Discord.js v13?
You could install dokdo@0.5.1
by
npm i dokdo@djsv13
npm i dokdo@latest
npm i wonderlandpark/dokdo#main
const Discord = require('discord.js')
const client = new Discord.Client({ intents: ['GUILDS', 'GUILD_MESSAGES'] })
const Dokdo = require('dokdo')
const DokdoHandler = new Dokdo(client, { aliases: ['dokdo', 'dok'], prefix: '!' }) // Using Bot Application ownerID as default for owner option.
client.on('messageCreate', async message => {
if (message.content === 'ping') return message.channel.send('Pong') // handle commands first
DokdoHandler.run(message) // try !dokdo
})
client.login('super secret token')
You can set the Dokdo prefix including mentions. This allows the client to read the message content.
Example:
new Dokdo(client, { prefix: '<@285185716240252929>' })
// Commmand Usage: <@285185716240252929> dokdo
Please check out it hasn't already been exists before you create issue, and check the contribution guide before you submit Pull Request.