2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-09-05 00:25:19 +00:00
Files
the-guard-bot/plugins/index.js
2021-05-07 22:46:11 +02:00

11 lines
252 B
JavaScript

'use strict';
const { Telegraf: { compose } } = require('telegraf');
const { config } = require('../utils/config');
const names = config.plugins || [];
const plugins = names.map(name => `./${name}`).map(require);
module.exports = compose(plugins);