additional error logging and debugging.

This commit is contained in:
MatteZ02 committed 2020-06-22 00:41:30 +03:00
1 parent 70316495f5
commit 2d7752d2cf
18 files changed
+126 -87

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
module.exports = function (client, dispatcher, queue, guild) {
dispatcher.on("finish", () => {
if (client.config.devMode) console.log("Dispatcher finish.");
require("./finish").execute(client, guild);
})
.on("start", () => {
if (client.config.devMode) console.log("Dispatcher start.");
queue.endReason = null;
dispatcher.player.streamingData.pausedTime = 0;
})
.on("error", (error) => {
require("./error").execute(client, error, guild);
}).on("debug", (info) => {
if (client.config.devMode) console.log(info);
})
}