UNPKG

koishi-plugin-waifu

Version:
32 lines (31 loc) 888 B
import { Context, Schema, Universal } from 'koishi'; export declare const name = "waifu"; export declare const inject: { required: string[]; optional: string[]; }; declare module '@koishijs/cache' { interface Tables { [key: `waifu_members_${string}`]: Universal.GuildMember; [key: `waifu_members_active_${string}`]: string; [key: `waifu_marriages_${string}`]: string; [key: `waifu_times_${string}`]: number; } } export interface Config { avoidNtr: boolean; onlyActiveUser: boolean; activeDays: number; excludeUsers: { uid: string; note?: string; }[]; maxTimes: number; forceMarry: boolean; propose: boolean; divorce: boolean; changeWaifu: boolean; waifuQuery: boolean; } export declare const Config: Schema<Config>; export declare function apply(ctx: Context, cfg: Config): void;