UNPKG

koishi-plugin-hitokoto-sentences

Version:
34 lines (33 loc) 816 B
import { Context, Schema, Service } from 'koishi'; export declare const name = "sentences"; declare module 'koishi' { interface Context { sentences: Sentences; } } export declare const Config: Schema<any>; export declare class Sentences extends Service { private s; constructor(ctx: Context); getSentence(params?: SentencesParams): Sentence; } export declare function apply(ctx: Context): void; export interface Sentence { id: number; hitokoto: string; type: string; from: string; from_who: string | null; creator: string; creator_uid: number; reviewer: number; uuid: string; commit_from: string; created_at: string; length: number; } export interface SentencesParams { c?: string[]; min_length?: number; max_length?: number; }