GoonCord/src/core/plugins/index.ts
kmmiio99o 6b7ec92149 Add Message Logger and ShiggyHelper core plugins, improve plugin listing
and settings UI

- Added Message Logger core plugin (port of Antied) - Added ShiggyHelper
core plugin with verbose logging and log dump UI - Improved /plugins
command to show core and external plugins separately - Split core and
external plugins into separate settings pages - Updated theme selection
logic for better color sync - Updated MessageFix author attribution -
Bumped version to 1.1.0
2025-10-12 17:46:51 +02:00

28 lines
906 B
TypeScript

import { PluginInstanceInternal } from "@lib/addons/plugins/types";
interface CorePlugin {
default: PluginInstanceInternal;
preenabled: boolean;
}
// Called from @lib/plugins
export const getCorePlugins = (): Record<string, CorePlugin> => ({
"bunny.quickinstall": { ...require("./quickinstall"), preenabled: true },
"bunny.badges": require("./badges"),
"bunny.notrack": { ...require("./notrack"), preenabled: true },
"bunny.messagefix": { ...require("./messagefix") },
"bunny.messagelogger": { ...require("./messagelogger"), preenabled: true },
"bunny.fixembed": { ...require("./fixembed"), preenabled: true },
"bunny.shiggyhelper": { ...require("./shiggyhelper") },
});
/**
* @internal
*/
export function defineCorePlugin(
instance: PluginInstanceInternal,
): PluginInstanceInternal {
// @ts-expect-error
instance[Symbol.for("bunny.core.plugin")] = true;
return instance;
}