[Plugins] Allow not exporting anything

This commit is contained in:
Beef 2023-04-16 14:02:22 +01:00
parent fd741ded5d
commit 3448a3b2cb

View file

@ -68,7 +68,7 @@ export async function evalPlugin(plugin: Plugin) {
const raw = (0, eval)(pluginString)(vendettaForPlugins);
const ret = typeof raw == "function" ? raw() : raw;
return ret?.default || ret;
return ret?.default ?? ret ?? {};
}
export async function startPlugin(id: string) {