UNPKG

koishi-plugin-edging

Version:
53 lines (52 loc) 1.56 kB
/// <reference types="node" /> import { Selection } from 'koishi-thirdeye'; import { Bot, Session } from 'koishi'; import moment from 'moment'; export declare class EdgingProfile { session: Session; from: string; bot: Bot; getBot(bots: Bot[]): Bot<Bot.Config>; to: string; duration: number; isOvertime(): boolean; getTarget(): string; model: string; encoding: BufferEncoding; loadModel(root: string): Promise<void>; texts: string[]; prefixes: string[]; suffixes: string[]; startTime: moment.Moment; usePics: boolean; noUsePics: boolean; getUsePics(): boolean; previousText: string; attachText(text: string): string; getText(): string; failText: string; successText: string; failTriggerWord: string; isFail(message: string): boolean; initialize(config: EdgingPluginConfig, bots: Bot[]): Promise<string>; send(content: string): Promise<string[]>; process(): Promise<string[]>; fail(): Promise<string[]>; success(): Promise<string[]>; describe(): string; } export declare class EdgingProfileConfig extends EdgingProfile { } export declare class EdgingPluginConfig { constructor(config: EdgingPluginConfigLike); modelRoot: string; picTags: string[]; sourceTags: string[]; defaultProfile: EdgingProfileConfig; panelSelection: Selection; minTextInterval: number; maxTextInterval: number; minPicInterval: number; maxPicInterval: number; } export type EdgingPluginConfigLike = Partial<EdgingPluginConfig>;