2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-23 02:17:47 +00:00

11 lines
252 B
JavaScript
Raw Normal View History

2017-10-27 18:43:33 +02:00
'use strict';
2021-05-07 22:46:11 +02:00
const { Telegraf: { compose } } = require('telegraf');
2017-10-27 18:43:33 +02:00
2020-03-09 23:27:19 +01:00
const { config } = require('../utils/config');
2017-10-27 18:43:33 +02:00
const names = config.plugins || [];
const plugins = names.map(name => `./${name}`).map(require);
module.exports = compose(plugins);