From af44f182f6543e00b02571515e75775c033a8324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 8 Mar 2020 11:47:11 +0200 Subject: [PATCH] Removing error messages are going to debug channel --- events/ready.js | 2 -- package.json | 17 ++++++++++++----- struct/funcs/exe.js | 5 ----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/events/ready.js b/events/ready.js index e6d7a29..f81b65d 100644 --- a/events/ready.js +++ b/events/ready.js @@ -1,8 +1,6 @@ module.exports = { name: 'ready', async execute(client, Discord) { - const debugChannel = await client.channels.fetch(client.config.debug_channel); - client.debug_channel = debugChannel if (client.config.devMode) { console.log('dev mode'); } diff --git a/package.json b/package.json index f375dac..3f14594 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,25 @@ { "name": "radiox", "version": "1.0.0", - "description": "", + "description": "Finnish Radio Discord Music Bot", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "start": "node ." + }, + "repository": { + "type": "git", + "url": "git+https://github.com/warengroup/eximiabots-radiox.git" + }, + "author": "EximiaBots", + "license": "MIT", + "bugs": { + "url": "https://github.com/warengroup/eximiabots-radiox/issues" }, - "author": "", - "license": "ISC", "dependencies": { + "@discordjs/opus": "^0.1.0", "discord.js": "^12.0.1", "dotenv": "^8.2.0", "fs": "0.0.1-security", - "node-opus": "^0.3.3", "path": "^0.12.7" } } diff --git a/struct/funcs/exe.js b/struct/funcs/exe.js index 51a688a..562b741 100644 --- a/struct/funcs/exe.js +++ b/struct/funcs/exe.js @@ -6,11 +6,6 @@ module.exports = function (msg, args, client, Discord, prefix, command) { command.execute(msg, args, client, Discord, prefix, command); } catch (error) { msg.reply(`<:redx:674263474704220182> there was an error trying to execute that command! Please contact support with \`${prefix}bug\`!`); - const embed = new Discord.MessageEmbed() - .setTitle(`Musix ${error.toString()}`) - .setDescription(error.stack.replace(/at /g, '**at **')) - .setColor('#b50002'); - client.debug_channel.send(embed); console.error(error); } };