UNPKG

@wahaha216/koishi-plugin-jmcomic

Version:

下载JM本子,无需python。支持pdf、zip加密。

23 lines (22 loc) 694 B
import { Config } from ".."; import { Logger, Session, HTTP } from "koishi"; import Puppeteer from "koishi-plugin-puppeteer"; export type JmTaskPayload = { type: "album" | "photo" | "blog"; id: string; session: Session; messageId: string; scope: string; }; interface ProcessorConfig { root: string; sendMethod: "zip" | "pdf"; password?: string; level?: number; fileName: string; fileMethod: "buffer" | "file"; cache: boolean; debug: boolean; } export declare const createJmProcessor: (processorConfig: ProcessorConfig, http: HTTP, config: Config, logger: Logger, puppeteer: Puppeteer) => (payload: JmTaskPayload) => Promise<void>; export {};