@wahaha216/koishi-plugin-jmcomic
Version:
下载JM本子,无需python。支持pdf、zip加密。
22 lines (21 loc) • 614 B
TypeScript
import { Config } from "..";
import { Logger, Session, HTTP } from "koishi";
export type JmTaskPayload = {
type: "album" | "photo";
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) => (payload: JmTaskPayload) => Promise<void>;
export {};