remove defaultErrorLogChannel

This commit is contained in:
Neko-Life 2021-08-22 17:23:31 +07:00
parent 6855e0ddd6
commit f4e507e9f9
2 changed files with 2 additions and 3 deletions

View file

@ -21,7 +21,6 @@
"000000",
16777214
],
"defaultErrorLogChannel": "822877910138224660",
"mongoServer": "mongodb://localhost:27017",
"chatChannel": "837178237322919966",
"guildLog": "840154722434154496",

View file

@ -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",