koishi-plugin-nitter-rss
Version:
订阅 X (Twitter) 内容,使用 nitter.cz,支持ChatGPT与Gradio Chatbot翻译
35 lines (34 loc) • 951 B
TypeScript
import { Context, Schema } from 'koishi';
export declare const inject: string[];
export declare const name = "nitter-rss";
interface Config {
nitterUrl: string;
translateType: string;
screenshot: boolean;
sendImage: boolean;
sendLink: boolean;
sendNewTweetAlert: boolean;
GradioChatBotModule: string;
GradioChatBotPrompt: string;
ChatGPTKey: string;
ChatGPTModule: string;
ChatGPTPrompt: string;
ChatGPTBaseUrl: string;
timeInterval: number;
sendingInterval: number;
translateTimeout: number;
skipRetweet: boolean;
text2image: boolean;
}
export declare const Config: Schema<Schemastery.ObjectS<{}>, {} & import("cosmokit").Dict>;
interface twitterAccount {
account: string;
translate: boolean;
}
declare module 'koishi' {
interface Channel {
twitterAccounts: twitterAccount[];
}
}
export declare function apply(ctx: Context, config: Config): void;
export {};