0.2.1 • Published 2 years ago

jadl v0.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Just another Discord Library

Formerly known as discord-rose, pronounced jay-dull

Scale clean and hassle-free Discord bots with a simple library catered for advanced developers. Develop with ease and confidence now.

Installation

Run npm i --save jadl

Links

Wiki Docs

Support Server

NPM, GitHub

Simple bot

You can easily use the SingleWorker class for easy use of JADL, for scaled solution, look below

./index.js

const { SingleWorker } = require('jadl')

const worker = new SingleWorker({
  token: 'BOT TOKEN'
})

Scaled Bot

You can instead use a Master & Worker solution, one master managing multiple workers/clusters, which hold x amount of shards, making it much more efficient.

./master.js

const { Master } = require('jadl')
const path = require('path')

const master = new Master(path.resolve(__dirname, './worker.js'), {
  token: 'BOT TOKEN'
})

master.start()

./worker.js

const { Worker } = require('jadl')

const worker = new Worker()

Do node ./master.js and you're off to the races. Scaled automatically.

Do note if your bot only ever fits into 1 cluster (< 5000 servers by default), you should consider using SingleWorker since master & worker introduce more process overhead

Commands

Commands are offloaded to a separate library, you can of course just build your own with the given Discord events, but feel free to checkout @jadl/cmd, a competent super-powered command handler built around decorators (TypeScript only) and slash commands only, made simple and easy to use.

Ready to take it to the next level? Take a look out our Wiki

0.2.1

2 years ago

0.2.0

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.8

2 years ago

0.1.9

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago