All Projects → Deivu → Azuma

Deivu / Azuma

Licence: MIT license
A package that actually syncs your ratelimits across all your clusters on Discord.JS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Azuma

Discord-Bot-TypeScript-Template
Discord bot - A discord.js bot template written with TypeScript.
Stars: ✭ 86 (+352.63%)
Mutual labels:  discordjs, discord-bot, sharding, discord-js
suggestions-bot
A Discord bot designed to build better communities by encouraging a positive and constructive relationship between community and staff.
Stars: ✭ 22 (+15.79%)
Mutual labels:  discordjs, discord-bot, sharding, discord-js
sharedsharder
Shard your discord.js bot across devices!
Stars: ✭ 18 (-5.26%)
Mutual labels:  discordjs, discord-bot, sharding, discord-js
Discord-Reposter
Bot for reposting Discord messages (work in progress)
Stars: ✭ 62 (+226.32%)
Mutual labels:  discordjs, discord-bot, discord-js
Kalopsia-Bot
♠️ A Powerful Open-Source Discord,js (v13) Bot written in JavaScript with many moderation, fun, economy, music, utility commands ♠️
Stars: ✭ 60 (+215.79%)
Mutual labels:  discordjs, discord-bot, discord-js
Discord-multipurpose-bot
A repository with JavaScript and Python versions of the same type of discord commands.
Stars: ✭ 27 (+42.11%)
Mutual labels:  discordjs, discord-bot, discord-js
Kato-Bot
discord bot
Stars: ✭ 51 (+168.42%)
Mutual labels:  discordjs, discord-bot, discord-js
LenoxBot
🖥️ LenoxBot is a Discord bot that offers many cool new features to your Discord server!
Stars: ✭ 218 (+1047.37%)
Mutual labels:  discordjs, discord-bot, discord-js
CustomDCBot
Create your own discord bot - Fully customizable and with a lot of features
Stars: ✭ 15 (-21.05%)
Mutual labels:  discordjs, discord-bot, discord-js
Discord-EmojiToRole
A discord.js bot that assigns roles based on reactions to a message.
Stars: ✭ 55 (+189.47%)
Mutual labels:  discordjs, discord-bot, discord-js
Discord-Bot-Choo-Choo
Coding Train Example Discord Bot
Stars: ✭ 35 (+84.21%)
Mutual labels:  discordjs, discord-bot, discord-js
NanoSpace
Erela.js & Discord.js@v14 (Prefix Commands!)
Stars: ✭ 59 (+210.53%)
Mutual labels:  discordjs, discord-bot, discord-js
AntiScam-Bot
Discord bot written on discord.js, deletes messages with scam links.
Stars: ✭ 16 (-15.79%)
Mutual labels:  discordjs, discord-bot, discord-js
hellsnakebot
🤖About A fully customizable bot built with discord.js
Stars: ✭ 14 (-26.32%)
Mutual labels:  discordjs, discord-bot, discord-js
TundraBot
All-in-one Discord bot
Stars: ✭ 49 (+157.89%)
Mutual labels:  discordjs, discord-bot, discord-js
SparkV
🤖⚡ | The most POWERFUL multipurpose chat/meme bot that will boost the activity in your server.
Stars: ✭ 24 (+26.32%)
Mutual labels:  discordjs, discord-bot, discord-js
cytrus-re
A multipurpose Discord bot!
Stars: ✭ 16 (-15.79%)
Mutual labels:  discordjs, discord-bot, discord-js
partner-bot
Automates partnerships in the big community of discord.
Stars: ✭ 119 (+526.32%)
Mutual labels:  discordjs, discord-bot, discord-js
Welcome-Bot
A cool multi-purpose discord bot that solves all your problems. I have features such as Moderation, ModLog, Welcome & Goodbye logs, Fun, Music
Stars: ✭ 73 (+284.21%)
Mutual labels:  discordjs, discord-bot, discord-js
ALi
ALi a powerful Discord bot that includes Utility, Fun, Music, Moderation, and much more! (Beta)
Stars: ✭ 97 (+410.53%)
Mutual labels:  discordjs, discord-bot, discord-js

Azuma

A package that actually syncs your ratelimits across all your clusters on Discord.JS

The Shipgirl Project; Azuma

EOL

Discord.JS started developing their "proxy" module, marking the end of EOL of this package. Use that instead

Link: https://github.com/discordjs/discord.js/tree/main/packages/proxy

Features

An easy drop in solution for those who wants globally synced ratelimits

Follows the original Discord.JS rest manager, so no breaking changes needed

Supports Discord.JS v13

NOTE

This library is now in "Maintenance" phase. I'm not gonna add new features on it. I'll just fix issues if there is but that's as far as I'll go.

You need to use Kurasuta to make this work as this package depends on it

This is planned to use @discordjs/sharder once it's ready. That's the last update and marks the v4 release

v1.x.x initial release (Latest in 1x branch is version: 1.1.0)

v2.x.x drops support for Discord.JS v12 (Latest in 2x branch is version: 2.1.2)

v3.x.x makes the package ESM only (Current)

Installation

npm i --save azuma

Documentation

https://deivu.github.io/Azuma/?api

Support

https://discord.gg/FVqbtGu #development channel

Example

Running Azuma is the same with Kurasuta, except on you need to change your index.js based on example below

Example of index.js

import { Azuma } from 'azuma';
import { Client } = from 'discord.js';

const KurasutaOptions = {
    client: YourBotClient,
    timeout: 90000,
    token: 'idk'
};
const AzumaOptions = {
    inactiveTimeout: 300000,
    requestOffset: 500
};
// Initialize Azuma
const azuma = new Azuma(new URL('BaseCluster.js', import.meta.url), KurasutaOptions, AzumaOptions);
// If you need to access the Kurasuta Sharding Manager, example, you want to listen to shard ready event
azuma.manager.on('shardReady', id => console.log(`Shard ${id} is now ready`));
// Call spawn from azuma, not from kurasuta
azuma.spawn();

Pro Tip

Azuma also exposes when a request was made, when a response from a request is received, and if you hit an actual 429 via an event emitter, which you can use to make metrics on

import { Client } = from 'discord.js';

class Example extends Client {
  login() {
    this.rest.on('onRequest', ({ request }) => /* do some parses on your thing for metrics or log it idk */);
    this.rest.on('onResponse', ({ request, response }) => /* do some parses on your thing for metrics or log it idk */);
    this.rest.on('onTooManyRequest', ({ request, response }) => /* do some probably, warning logs here? since this is an actual 429 and can get you banned for an hour */);
    return super.login('token');
  }
}

WARNING: DO NOT CHANGE OR RUN ANY FUNCTION FROM THE PARAMETERS. It's designed to be used as read-only values

Based from my old handling from @Kashima, Made with by @Sāya#0113

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].