UNPKG

koishi-plugin-see-color

Version:

Koishi 的找色块游戏插件。找到不同的色块。

47 lines (46 loc) 1.35 kB
import { Context, Schema } from 'koishi'; export declare const name = "see-color"; export declare const inject: { required: string[]; }; export declare const usage = "## \u4F7F\u7528\n\n1. \u542F\u52A8 `puppeteer` \u670D\u52A1\u3002\n2. \u8BBE\u7F6E\u6307\u4EE4\u522B\u540D\u3002\n\n## QQ \u7FA4\n\n- 956758505"; export interface Config { blockSize: number; initialLevel: number; pictureQuality: number; isCompressPicture: boolean; spacingBetweenGrids: number; blockGuessTimeLimitInSeconds: number; isNumericGuessMiddlewareEnabled: boolean; shouldInterruptMiddlewareChainAfterTriggered: boolean; } export declare const Config: Schema<Config>; declare module 'koishi' { interface Tables { see_color_rank: SeeColorRank; see_color_games: SeeColorGame; see_color_playing_records: SeeColorPlayingRecord; } } export interface SeeColorGame { id: number; level: number; block: number; channelId: string; timestamp: string; isStarted: boolean; } export interface SeeColorPlayingRecord { id: number; channelId: string; userId: string; username: string; score: number; } export interface SeeColorRank { id: number; userId: string; userName: string; score: number; } export declare function apply(ctx: Context, config: Config): void;