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>')
yarn add dxn
# or
npm install dxn
RegExp:
/.+/
Sample:
hello
RegExp:
\{[$_a-zA-Z][$_0-9a-zA-Z]*: [string|string?|number|number?|boolean|boolean?]\}
Sample:
{name: string}
{age: number}
{yes: boolean?}