# Examples
Example usages of Dokdo.
# Return message for Non-owner user
const Discord = require('discord.js')
const dokdo = require('dokdo')
const client = new Discord.Client()
const DokdoHandler = new Dokdo(client, { prefix: '!', noPerm: (message) => message.reply('π« You have no permission to use dokdo.') })
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`)
})
client.on('message', async message => {
if (message.content === 'ping') return message.reply('pong')
await DokdoHandler.run(message)
})
client.login('token')
# Result
β Introduction Commands β