2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-29 05:07:49 +00:00
the-guard-bot/index.js
2020-04-24 15:24:24 +02:00

21 lines
333 B
JavaScript

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