2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-29 05:07:49 +00:00
Thomas Rory Gummerson f018464482
Type config file
2020-03-12 19:42:53 +01:00

11 lines
238 B
JavaScript

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