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!很好看的字体! 支持自动清理记录内容。

27 lines (26 loc) 1.06 kB
import type { Context } from 'koishi'; import type { Config } from '../types'; /** * 记录用户签到时间 */ export declare function recordSignIn(ctx: Context, userId: string, channelId: string): Promise<void>; /** * 检查用户是否已签到 */ export declare function alreadySignedInToday(ctx: Context, userId: string, channelId: string, config: Config): Promise<boolean>; /** * 更新用户货币 */ export declare function updateUserCurrency(ctx: Context, uid: string, amount: number, currency: string, logInfo: (...args: any[]) => void): Promise<string>; /** * 获取用户货币 */ export declare function getUserCurrency(ctx: Context, uid: string, currency: string): Promise<number>; /** * 获取原图 URL */ export declare function getOriginalImageURL(ctx: Context, jsonFilePath: string, messageIdOrTime: string): Promise<string | null>; /** * 删除图片记录 */ export declare function deleteImageRecord(ctx: Context, jsonFilePath: string, messageId: string, imageURL: string, logInfo: (...args: any[]) => void): Promise<void>;