3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
This commit is contained in:
Dragory 2020-08-28 02:01:35 +03:00
parent 60f73bd752
commit cce59f596d
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -153,7 +153,11 @@ connect().then(async () => {
* Dependencies are also automatically loaded by Knub. * Dependencies are also automatically loaded by Knub.
*/ */
async getEnabledGuildPlugins(ctx, plugins): Promise<string[]> { async getEnabledGuildPlugins(ctx, plugins): Promise<string[]> {
const configuredPlugins = ctx.config.plugins || []; if (!ctx.config || !ctx.config.plugins) {
return [];
}
const configuredPlugins = ctx.config.plugins;
const basePluginNames = baseGuildPlugins.map(p => p.name); const basePluginNames = baseGuildPlugins.map(p => p.name);
return Array.from(plugins.keys()).filter(pluginName => { return Array.from(plugins.keys()).filter(pluginName => {