3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-08 03:27:20 +00:00

refactor: move defaults to config schemas

This commit is contained in:
Dragory 2025-05-23 01:12:52 +00:00
parent 09eb8e92f2
commit 83d35052c3
No known key found for this signature in database
91 changed files with 450 additions and 888 deletions

View file

@ -7,7 +7,7 @@ import { UsernameSaverPluginType, zUsernameSaverConfig } from "./types.js";
export const UsernameSaverPlugin = guildPlugin<UsernameSaverPluginType>()({
name: "username_saver",
configParser: (input) => zUsernameSaverConfig.parse(input),
configSchema: zUsernameSaverConfig,
// prettier-ignore
events: [

View file

@ -6,7 +6,7 @@ import { UsernameHistory } from "../../data/UsernameHistory.js";
export const zUsernameSaverConfig = z.strictObject({});
export interface UsernameSaverPluginType extends BasePluginType {
config: z.infer<typeof zUsernameSaverConfig>;
configSchema: typeof zUsernameSaverConfig;
state: {
usernameHistory: UsernameHistory;
updateQueue: Queue;