Change event name from 'ready' to 'clientReady'
This commit is contained in:
1 file changed
+1
-12
@@ -27,7 +27,7 @@ const APIServer = require("./API/server.js");
|
|||||||
|
|
||||||
client.start(supportbot.General.Token);
|
client.start(supportbot.General.Token);
|
||||||
|
|
||||||
client.once('ready', () => {
|
client.once('clientReady', () => {
|
||||||
const api = new APIServer(client);
|
const api = new APIServer(client);
|
||||||
api.start();
|
api.start();
|
||||||
});
|
});
|
||||||
@@ -77,14 +77,3 @@ process.on("unhandledRejection", (reason) => {
|
|||||||
process.on("uncaughtException", (err) => {
|
process.on("uncaughtException", (err) => {
|
||||||
console.error("Uncaught Exception:", err);
|
console.error("Uncaught Exception:", err);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user