mirror of
https://github.com/danbulant/Shasha
synced 2026-06-07 08:32:16 +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 { MessageEmbed, Message, GuildMember, User, Client, GuildChannel, Role, MessageOptions, Channel } = require('discord.js');
|
||||||
const { defaultErrorLogChannel } = require("../config.json");
|
const { defaultErrorLogChannel } = require("../config.json");
|
||||||
const { database } = require("../database/mongo");
|
const { database } = require("../database/mongo");
|
||||||
|
const { timestampAt } = require('./debug');
|
||||||
const getColor = require('./getColor');
|
const getColor = require('./getColor');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -46,7 +47,7 @@ async function errLog(theError, msg, client, sendTheError, errorMessage, notify)
|
||||||
logThis = "";
|
logThis = "";
|
||||||
}
|
}
|
||||||
const sendAt = client.channels.cache.get(defaultErrorLogChannel);
|
const sendAt = client.channels.cache.get(defaultErrorLogChannel);
|
||||||
sendAt.send(logThis + inLogChannel.trim(),{split:true});
|
sendAt.send(logThis + inLogChannel.trim() + timestampAt(),{split:true});
|
||||||
} catch (errmes) {
|
} catch (errmes) {
|
||||||
errLog(errmes, msg);
|
errLog(errmes, msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue