@pikokr/dokdo
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

Build status

About

Dokdo. Easy Discord bot debuging tool.

It's debugging tool for discord.js projects.

Preview

sh

Installation

Using Discord.js v12?

You could install dokdo@0.4 by

  npm i dokdo@djsv12

Stable

npm i dokdo@latest

Dev

npm i wonderlandpark/dokdo#main

Features

Shell command on stdout update

shell

Easy shard broadcastEval manager

shard

Example usage

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')

Contributing

Please check out it hasn't already been exists before you create issue, and check the contribution guide before you submit Pull Request.

Readme

Keywords

none

Package Sidebar

Install

npm i @pikokr/dokdo

Weekly Downloads

0

Version

0.6.0

License

MIT

Unpacked Size

368 kB

Total Files

53

Last publish

Collaborators

  • pikokr