0.0.9 • Published 3 years ago

dxn v0.0.9

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

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

スクリーンショット 2021-01-30 2 30 33

2021-01-30_1 55 15

➕ 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?}
0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.0

3 years ago