mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 08:10:18 +00:00
12 lines
357 B
JavaScript
12 lines
357 B
JavaScript
const MusicClient = require("./struct/client.js");
|
|
const DiscordWebhook = require("discord-webhook-node");
|
|
const client = new MusicClient({});
|
|
const webhookClient = new DiscordWebhook.Webhook(client.config.webhookUrl);
|
|
|
|
const oldConsole = {};
|
|
oldConsole.log = console.log;
|
|
console.log = function (arg) {
|
|
oldConsole.log(arg);
|
|
webhookClient.send(arg);
|
|
};
|