Giter Club home page Giter Club logo

jadl's Introduction

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

jadl's People

Contributors

alexanderpaolini avatar jpbberry avatar matthew-st avatar murky-momo avatar

Watchers

 avatar  avatar

Forkers

bowsiepup

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.