koishi-plugin-mizuki-bot
Version:
65 lines (64 loc) • 1.47 kB
TypeScript
import { Context } from 'koishi';
declare module 'koishi' {
interface Tables {
mzk_user: User;
mzk_jellyfish_box: JellyfishBox;
mzk_jellyfish_meta: JellyfishMeta;
mzk_jellyfish_event_meta: EventMeta;
}
}
export interface User {
id: number;
platform: string;
user_id: string;
nickname: string;
skland_cred: string;
skland_uid: string;
skland_token: string;
skland_last_refresh: Date;
skland_last_attendent?: Date;
}
export interface Jellyfish {
id: string;
number: number;
}
export interface Decoration {
deco_id: string;
}
export interface JellyfishBox {
user_id: number;
last_catch_time: Date;
last_refresh_time: Date;
jellyfish: Jellyfish[];
decoration: Decoration[];
salinity: number;
temperature: number;
draw_style: 'normal' | 'pixel';
}
export interface JellyfishMeta {
id: string;
name: string;
group: string;
description: string;
reproductive_rate: number;
living_location: string[];
protected: boolean;
draw: {
size: number;
bounce: boolean;
speed: 'slow' | 'normal' | 'fast';
};
}
export interface EventMeta {
id: string;
name: string;
description: string;
type: string;
probability: number;
relation: {
jellyfish: string[];
medal: string[];
};
}
export declare const name = "Database";
export declare function apply(ctx: Context): void;