diff --git a/bot.js b/bot.js index ec15693..8fdc63b 100644 --- a/bot.js +++ b/bot.js @@ -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');