1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-17 01:16:00 +00:00

Moved rest of the messages to messages file

This commit is contained in:
MatteZ02
2020-03-12 23:07:44 +02:00
parent dd2f33873b
commit e15e81d9fe
13 changed files with 68 additions and 32 deletions

View File

@ -3,6 +3,6 @@ module.exports = async function (client) {
await client.channels.fetch(client.config.secondary_test_channel)
.then(x => x.join());
} catch (error) {
client.debug_channel.send("Error detected: " + error);
client.debug_channel.send(client.messages.errorDetected + error);
}
};

View File

@ -19,7 +19,7 @@ module.exports = async function (guild, song, client, seek, play) {
});
dispatcher.on('error', error => {
console.error(error);
client.debug_channel.send('Error with the dispatcher: ' + error);
client.debug_channel.send(client.messages.dispatcherError + error);
serverQueue.voiceChannel.leave();
client.queue.delete(guild.id);
return serverQueue.textChannel.send(client.messages.errorDispatcher);