koishi-plugin-pixiv-parse
Version:
提供 Pixiv 链接解析与更新订阅功能的 Koishi 插件
52 lines (51 loc) • 1.38 kB
TypeScript
import { Context, Schema } from 'koishi';
import type Puppeteer from 'koishi-plugin-puppeteer';
export declare const name = "pixiv-parse";
export declare const inject: {
required: string[];
optional: string[];
};
declare module 'koishi' {
interface Context {
puppeteer: Puppeteer;
}
interface Tables {
pixiv_last_artworks: {
author_id: string;
last_artwork_id: string;
};
}
}
export type Subscription = {
uid: string;
name: string;
channelIds: string[];
};
export interface Config {
refreshToken?: string;
phpsessid?: string;
sendTags: boolean;
sendAuthor: boolean;
sendLinkWithCommand: boolean;
r18Action: 'block' | 'warn' | 'send';
forwardThreshold: number;
pdfThreshold: number;
autoPdfForR18: boolean;
pdfPassword?: string;
pdfSendMode: 'buffer' | 'file';
enableCompression: boolean;
compressionQuality: number;
downloadConcurrency: number;
enableUidCommand: boolean;
sendUserInfoText: boolean;
clientId: string;
clientSecret: string;
debug: boolean;
enableSubscription: boolean;
updateInterval?: number;
subscriptions?: Subscription[];
pushBotPlatform?: string;
pushBotId?: string;
}
export declare const Config: Schema<Config>;
export declare function apply(ctx: Context, config: Config): void;