mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-07 16:05:01 +00:00
refactor: move defaults to config schemas
This commit is contained in:
parent
09eb8e92f2
commit
83d35052c3
91 changed files with 450 additions and 888 deletions
|
@ -4,18 +4,10 @@ import { makePublicFn } from "../../pluginUtils.js";
|
|||
import { getDomainInfo } from "./functions/getDomainInfo.js";
|
||||
import { PhishermanPluginType, zPhishermanConfig } from "./types.js";
|
||||
|
||||
const defaultOptions: PluginOptions<PhishermanPluginType> = {
|
||||
config: {
|
||||
api_key: null,
|
||||
},
|
||||
overrides: [],
|
||||
};
|
||||
|
||||
export const PhishermanPlugin = guildPlugin<PhishermanPluginType>()({
|
||||
name: "phisherman",
|
||||
|
||||
configParser: (input) => zPhishermanConfig.parse(input),
|
||||
defaultOptions,
|
||||
configSchema: zPhishermanConfig,
|
||||
|
||||
public(pluginData) {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue