mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix
This commit is contained in:
parent
60f73bd752
commit
cce59f596d
1 changed files with 5 additions and 1 deletions
|
@ -153,7 +153,11 @@ connect().then(async () => {
|
|||
* Dependencies are also automatically loaded by Knub.
|
||||
*/
|
||||
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);
|
||||
|
||||
return Array.from(plugins.keys()).filter(pluginName => {
|
||||
|
|
Loading…
Add table
Reference in a new issue