dxn
v0.0.9
Published
progressive discord.js library
Downloads
14
Readme
dxn
schema base Discord.js framework.
import { App } from 'dxn'
const app = new App({
prefixes: ['$'],
})
app.command('hello {name: string}', (message, { args }) => {
message.reply(`hello ${args.name}!`)
})
app.login('<BOT_TOKEN>')
➕ Installation
yarn add dxn
# or
npm install dxn
🌟 Schema syntax
Free word
RegExp:
/.+/
Sample:
hello
Argument
RegExp:
\{[$_a-zA-Z][$_0-9a-zA-Z]*: [string|string?|number|number?|boolean|boolean?]\}
Sample:
{name: string}
{age: number}
{yes: boolean?}