mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 01:20:48 +00:00
additional error logging and debugging.
This commit is contained in:
16
src/events/dispatcherEvents/handler.js
Normal file
16
src/events/dispatcherEvents/handler.js
Normal 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);
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user