UNPKG

koishi-plugin-kbot

Version:
25 lines (24 loc) 634 B
import { Logger, Schema } from 'koishi'; import type { Context } from 'koishi'; declare module 'koishi' { interface Channel { disable: string[]; watchDelete: boolean; } } export interface IConfig { monitorSpeech?: { enabled: boolean; violations?: string[]; count?: number; handleWay?: 'mute' | 'kick'; }; monitorGuildAdd?: { enabled: boolean; timer?: number; questions?: Record<string, string>; }; } export declare const Config: Schema<IConfig>; export declare const logger: Logger; export declare function apply(context: Context): void;