UNPKG

koishi-plugin-autopic

Version:

Automatically sends random pics to specific targets.

40 lines (39 loc) 1.63 kB
import { AutoPicPluginConfig } from './config'; export * from './config'; declare const AutoPicInstancePlugin_base: new (ctx: import("cordis").Context<any>, config: { tags?: string[]; sourceTags?: string[]; } & { cron?: string; interval?: number; randomInterval?: { max?: number; min?: number; getInterval?: () => number; isAvailable?: () => boolean; processRandom?: (ctx: import("koishi").Context, callback: () => void) => void; }; immediate?: boolean; targets?: { bot?: string; users?: string[]; channels?: { channelId?: string; guildId?: string; toDesc?: () => string | [string, string]; toFilter?: () => import("koishi").Filter; }[]; getBot?: (bots: import("koishi").Bot<import("koishi").Bot.Config>[]) => import("koishi").Bot<import("koishi").Bot.Config>; getFilter?: () => import("koishi").Filter; getContext?: (ctx: import("koishi").Context) => import("koishi").Context; replaceContent?: (content: string, fromKey: string, toKey: string) => string; send?: (bots: import("koishi").Bot<import("koishi").Bot.Config>[], content: string) => Promise<string[]>; }[]; initializeTasks?: (ctx: import("koishi").Context, callback: () => void) => void; }) => import("koishi-schedule-send").BaseSchedulePlugin & { config: import("koishi-schedule-send").SchedulePluginConfig & AutoPicPluginConfig; }; export default class AutoPicInstancePlugin extends AutoPicInstancePlugin_base { private pics; send(): Promise<string>; }