koishi-plugin-satori-ai
Version:
基于 Satori 适配器的智能对话插件,具备用户画像、长期记忆、常识管理和好感度系统
23 lines (22 loc) • 715 B
TypeScript
import { Context, Session } from 'koishi';
import { Sat } from './types';
export declare class Galgame {
private ctx;
private config;
private ongoingEvents;
private waitingForOptions;
private completedEvents;
private currentId;
constructor(ctx: Context, config: Sat.Config);
private loadEvent;
private sendStoryContent;
private computeAutoAdvanceDelay;
private handleEventProgress;
private handleEnding;
private updateFavorability;
private updatePPoints;
private updateItemRewards;
startEvent(session: Session, eventName?: string): Promise<void>;
handleOption(session: Session, optionId: number): Promise<void>;
initialize(): Promise<void>;
}