From f4e507e9f91babc8ffec70fd117681ddd6c8a875 Mon Sep 17 00:00:00 2001 From: Neko-Life Date: Sun, 22 Aug 2021 17:23:31 +0700 Subject: [PATCH] remove defaultErrorLogChannel --- config_copy.json | 1 - resources/functions.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config_copy.json b/config_copy.json index 84135c8..80f823f 100644 --- a/config_copy.json +++ b/config_copy.json @@ -21,7 +21,6 @@ "000000", 16777214 ], - "defaultErrorLogChannel": "822877910138224660", "mongoServer": "mongodb://localhost:27017", "chatChannel": "837178237322919966", "guildLog": "840154722434154496", diff --git a/resources/functions.js b/resources/functions.js index facdf16..bd4258d 100644 --- a/resources/functions.js +++ b/resources/functions.js @@ -1,7 +1,7 @@ 'use strict'; const { MessageEmbed, Message, GuildMember, User, GuildChannel, Role, MessageOptions, TextChannel, DMChannel, Guild, Channel } = require('discord.js'); -const { defaultErrorLogChannel, ranLogger } = require("../config.json"); +const { errLogChannel, ranLogger } = require("../config.json"); const { timestampAt } = require('./debug'); const getColor = require('./getColor'); const { randomColors } = require("../config.json"); @@ -42,7 +42,7 @@ async function errLog(theError, msg, client, sendTheError, errorMessage, notify) if (client) { inLogChannel = inLogChannel + '```js\n' + theError.stack + '```'; try { - const sendAt = client.channels.cache.get(defaultErrorLogChannel); + const sendAt = client.channels.cache.get(errLogChannel); sendAt.send(logThis + inLogChannel.trim() + timestampAt(client), { split: { maxLength: 2000, char: "\n",