mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Add ratelimit debug messages
This commit is contained in:
parent
93571bcbfe
commit
83bc596e2b
1 changed files with 6 additions and 0 deletions
|
@ -83,6 +83,12 @@ connect().then(async conn => {
|
||||||
});
|
});
|
||||||
client.setMaxListeners(100);
|
client.setMaxListeners(100);
|
||||||
|
|
||||||
|
client.on("debug", message => {
|
||||||
|
if (message.includes(" 429 ")) {
|
||||||
|
logger.info(`[RATELIMITED] ${message}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const basePlugins = ["message_saver", "name_history", "cases", "mutes"];
|
const basePlugins = ["message_saver", "name_history", "cases", "mutes"];
|
||||||
|
|
||||||
const bot = new Knub(client, {
|
const bot = new Knub(client, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue