Files
moeka-project/integrations/satori-bot/src/capabilities/definition.ts
T
2026-08-26 19:49:58 +08:00

19 lines
379 B
TypeScript

import type { Action, BotContext, ChatContext } from '../core/types'
export interface ActionHandler {
description?: string
execute: (
ctx: BotContext,
chatCtx: ChatContext,
args: Action,
abortSignal?: AbortSignal,
) => Promise<ActionResult>
name: string
}
export interface ActionResult {
result: unknown
shouldContinue: boolean
success: boolean
}