DokdoDokdo
  • English
  • ko-KR
GitHub
  • English
  • ko-KR
GitHub
  • Introduction
  • Examples
  • Commands
  • Typing

Examples

This page contains examples of how to use Dokdo.

Example 1: Basic Setup

const Dokdo = require('dokdo')
const DokdoHandler = new Dokdo(client, { prefix: '!' })
client.on('message', async (message) => {
  await DokdoHandler.run(message)
})

Example 2: Custom Options

const Dokdo = require('dokdo')
const DokdoHandler = new Dokdo(client, {
  prefix: '!!',
  noPerm: (message) => message.reply('You do not have permission to use this command.')
})
client.on('message', async (message) => {
  await DokdoHandler.run(message)
})
Edit this page
Last Updated:: 4/15/25, 3:15 PM
Contributors: wonderlandpark
Prev
Introduction
Next
Commands