1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23:17 +00:00

if devmode no logs will be sent

This commit is contained in:
MatteZ02 2020-06-17 13:20:35 +03:00
parent 44ef6cf4bc
commit e1492fb885
3 changed files with 11 additions and 8 deletions

View File

@ -26,5 +26,5 @@ const oldConsole = {};
oldConsole.log = console.log;
console.log = function (arg) {
oldConsole.log(arg);
webhookClient.send(arg);
if (!config.devMode) webhookClient.send(arg);
};

View File

@ -7,5 +7,5 @@ const oldConsole = {};
oldConsole.log = console.log;
console.log = function (arg) {
oldConsole.log(arg);
webhookClient.send(arg);
if (!client.config.devMode) webhookClient.send(arg);
};

View File

@ -1,9 +1,12 @@
module.exports = async function (guild, song, client, seek, play) {
console.log("test");
const { Readable: ReadableStream } = require("stream");
const {
Readable: ReadableStream
} = require("stream");
const Discord = require("discord.js");
const ytdl = require("ytdl-core");
const { streamConfig } = require("../config/config.js");
const {
streamConfig
} = require("../config/config.js");
const prism = require("prism-media");
const queue = client.queue.get(guild.id);
if (!song) {