2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-22 18:08:51 +00:00
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);