(node:126946) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added to [process]. Use emitter.setMaxListeners() to increase limit

This commit is contained in:
ChomeNS 2022-11-18 15:57:30 +07:00
parent 6df23b4a6e
commit eb4e07b8cc

2
bot.js
View file

@ -184,7 +184,7 @@ async function createBot(server, config, getBots, dcclient) {
bot._client.on('error', function() {});
process.on('uncaughtException', (error) => {
process.once('uncaughtException', (error) => {
console.error('uncaught ' + util.inspect(error));
// channel.send('uncaught ```\n' + util.inspect(error) + '\n```');
// bot.emit('end', 'uncaughtException', 'process: uncaughtException');