mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
added interval fixes - bots die gracefully now
This commit is contained in:
@@ -7,6 +7,11 @@ var request = require("superagent");
|
||||
|
||||
client.on("ready", () => {
|
||||
console.log("ready");
|
||||
|
||||
setTimeout(() => {
|
||||
client.internal.websocket.close();
|
||||
}, 3000);
|
||||
|
||||
});
|
||||
|
||||
client.on("message", msg => {
|
||||
|
||||
Reference in New Issue
Block a user