1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 08:20:59 -04:00

Remove console.error from DZ.

This commit is contained in:
toast-ts 2023-03-10 09:09:14 +11:00
parent 01dfbaa2b3
commit d27f82a612

View File

@ -26,7 +26,6 @@ client.on('ready', async()=>{
// Handle errors
function DZ(error:Error, location:string){// Yes, I may have shiternet but I don't need to wake up to like a hundred messages or so.
if (['getaddrinfo ENOTFOUND discord.com'].includes(error.message)) return;
console.log(error);
const channel = client.channels.resolve(client.config.mainServer.channels.errors) as Discord.TextChannel | null
channel?.send({embeds: [new client.embed().setColor('#420420').setTitle('Error caught!').setFooter({text: location}).setDescription(`**Error:** \`${error.message}\`\n\n**Stack:** \`${`${error.stack}`.slice(0, 2500)}\``)]})
}