UNPKG

koishi-plugin-satori-ai

Version:

基于 Satori 适配器的智能对话插件,具备用户画像、长期记忆、常识管理和好感度系统

30 lines (29 loc) 752 B
import { Session, Context } from 'koishi'; import { Sat } from './types'; import { SAT } from './index'; export declare enum winFlag { win = 1, lose = 2, draw = 3, pending = 4 } /** * 游戏总控类,管理所有可用游戏和命令 */ export declare class Game { private GAMES; private channelGames; private availableGames; private userUsage; private context; private config; private sat; constructor(ctx: Context, cfg: Sat.Config, sat: SAT); private registerCommands; startGame(session: Session, gameName: string, args: string[]): Promise<string>; endGame(session: Session): Promise<string>; private chat; private getGameCd; private getGameList; private resultJudge; }