2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-22 09:57:50 +00:00
the-guard-bot/index.js
Wojciech Pawlik 5c741022c4
Misc
2020-02-19 14:32:25 +01:00

22 lines
366 B
JavaScript

'use strict';
process.chdir(__dirname);
// Utils
const { logError } = require('./utils/log');
const bot = require('./bot');
bot.use(
require('./handlers/middlewares'),
require('./handlers/messages'),
require('./plugins'),
require('./handlers/commands'),
require('./handlers/regex'),
require('./handlers/unmatched'),
);
bot.catch(logError);
bot.launch();