UNPKG

koishi-plugin-nitter-rss

Version:

订阅 X (Twitter) 内容,使用 nitter.cz,支持ChatGPT与Gradio Chatbot翻译

24 lines (23 loc) 739 B
import { h, Context } from 'koishi'; import { LinkInfo } from './utils'; 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 function parseLinkInfo(ctx: Context, parsedTwitterLink: LinkInfo, config: Config, translate: boolean, forceTranslate?: boolean): Promise<Array<string | h>>; export {};