mirror of
https://github.com/danbulant/Shasha
synced 2026-06-18 13:51:08 +00:00
errLog
This commit is contained in:
parent
6171ad9e73
commit
c6cafb3656
1 changed files with 4 additions and 0 deletions
4
Main.js
4
Main.js
|
|
@ -68,6 +68,10 @@ client.on("guildMemberAdd", newMember => {
|
|||
//console.log(`New member ${newMember.displayName} (${newMember.user.tag}) (${newMember.id}) joined ${newMember.guild.name} (${newMember.guild.id})! Now it has ${newMember.guild.memberCount} total members count.`);
|
||||
});
|
||||
|
||||
process.on("uncaughtException", e => errLog(e, null, client));
|
||||
process.on("unhandledRejection", e => errLog(e, null, client));
|
||||
process.on("warning", e => errLog(e, null, client));
|
||||
|
||||
// client.on("debug", (...args) => console.log(...args));
|
||||
|
||||
client.login(configFile.token);
|
||||
Loading…
Reference in a new issue