This reverts commit 1e4016ffd4 in discord-bot-core subrepo
1e4016ffd4
@ -62,7 +62,8 @@ module.exports = class Client extends Discord.Client {
onDebug(info) {
info = info.replace(/Authenticated using token [^ ]+/, "Authenticated using token [redacted]");
CoreUtil.dateDebug(info);
if (!InternalConfig.debugIgnores.some(x => info.startsWith(x)))
}
onGuildCreate(guild) {
@ -92,7 +93,8 @@ module.exports = class Client extends Discord.Client {
/**
* @param {*} json
* @param {*} guildDataModel
*/
fromJSON(json) {
const guildsData = Object.keys(json);
@ -3,5 +3,9 @@
"website": "https://benji7425.github.io",
"discordInvite": "https://discord.gg/SSkbwSJ",
"defaultDMResponse": "This bot does not have any handling for direct messages. To learn more or get help please visit %s, or join my Discord server here: %s",
"reconnectTimeout": 5000
"reconnectTimeout": 5000,
"debugIgnores":[
"[ws] [connection] Sending a heartbeat",
"[ws] [connection] Heartbeat acknowledged"
]