import { Config } from '../../../index'; import { Context } from 'koishi'; export interface Jrrp { id: number; userId: string; date: string; luck: number; } declare module 'koishi' { interface Tables { jrrp: Jrrp; } } declare class JrrpPlugin { private ctx; private config; constructor(ctx: Context, config: Config); /** * 获取用户的人品记录 */ private getUserLuckRecord; private setupDatabase; private setupCleanupTask; private registerCommands; private handleJrrpCommand; private handleRankCommand; private getRankings; private formatRankingMessage; private sendForwardMessage; private formatRankingText; private handleHistoryCommand; private getHistoryDateRange; private getHistoryRecords; private formatHistoryMessage; } export default JrrpPlugin;