mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 22:25:15 +00:00
console.error unhandled errors
This commit is contained in:
3
index.js
3
index.js
@@ -3,6 +3,7 @@ require('dotenv').config();
|
||||
|
||||
// Utils
|
||||
const { deleteAfter } = require('./utils/tg');
|
||||
const { logErrorProperly } = require('./utils/log');
|
||||
|
||||
// Bot
|
||||
const bot = require('./bot');
|
||||
@@ -48,4 +49,6 @@ bot.command('report', reportHandler);
|
||||
bot.hears(/^@admins?$/i, reportHandler);
|
||||
bot.command('staff', staffHandler);
|
||||
|
||||
bot.catch(logErrorProperly);
|
||||
|
||||
bot.startPolling();
|
||||
|
Reference in New Issue
Block a user