UNPKG

koishi-plugin-jrys-prpr

Version:

[<ruby>**jrys-prpr**<rp>(</rp><rt>点我查看预览图</rt><rp>)</rp></ruby>](https://i0.hdslb.com/bfs/article/ae33f1b2e9dbc3fe89363a40fbf040703493298333289018.png)😽QQ官方json按钮支持,20个群即可发按钮!支持 monetary!很好看的字体! 支持自动清理记录内容。

21 lines (20 loc) 851 B
import type { Context, Session } from 'koishi'; import type { Config } from '../types'; /** * 发送 Markdown 消息 */ export declare function sendmarkdownMessage(ctx: Context, session: Session, message: any, logInfo: (...args: any[]) => void): Promise<void>; /** * 上传图片到 QQ 频道 */ export declare function uploadImageToChannel(ctx: Context, imageBuffer: Buffer, appId: string, secret: string, token: string, channelId: string, config: Config): Promise<{ url: string; }>; /** * 构建 Markdown 消息 */ export declare function markdown(ctx: Context, session: Session, encodedMessageTime: string, imageUrl: string, imageToload: string, config: Config, logInfo: (...args: any[]) => void): Promise<any>; /** * 替换占位符 */ export declare function replacePlaceholders(content: any, context: any, isRawMode?: boolean): any;