mirror of
https://github.com/danbulant/Shasha
synced 2026-05-24 12:22:00 +00:00
add: debug.js
This commit is contained in:
parent
6440b2ace2
commit
a2984d02c0
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
const { MessageEmbed, Message, GuildMember, User, Client, GuildChannel, Role, MessageOptions, Channel } = require('discord.js');
|
||||
const { defaultErrorLogChannel } = require("../config.json");
|
||||
const { database } = require("../database/mongo");
|
||||
const { timestampAt } = require('./debug');
|
||||
const getColor = require('./getColor');
|
||||
|
||||
/**
|
||||
|
|
@ -46,7 +47,7 @@ async function errLog(theError, msg, client, sendTheError, errorMessage, notify)
|
|||
logThis = "";
|
||||
}
|
||||
const sendAt = client.channels.cache.get(defaultErrorLogChannel);
|
||||
sendAt.send(logThis + inLogChannel.trim(),{split:true});
|
||||
sendAt.send(logThis + inLogChannel.trim() + timestampAt(),{split:true});
|
||||
} catch (errmes) {
|
||||
errLog(errmes, msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue