FetherAI Command

基本信息

属性 值
命令名 /fetherai
权限等级 0
注册位置 客户端 ClientCommandHandler
启用配置 FetherConfig.enableFetherAI = true(默认)

行为

CommandFetherAI 是一个客户端"伪 AI"命令(Fether.java.preInit 仅在 event.getSide().isClient() 注册)。支持两个子命令:

  • text <prompt>:若 numResponsesText < 1 报错 “FetherAI is currently unavailable”。ai.getRandomText(prompt) 按 aiRandomness(0.0–1.0)概率返回随机文案,否则使用 prompt.hashCode() 作为 seed 返回"伪固定"回答。共 45 条预置文本回复(依 commands.fether.fetherai.response.text.num 决定)——内容在 en_US.lang 中,包括 “Hello there!” / “Yes.” / “Maybe.” / “Let’s play rock paper scissors!” 等玩笑短语。
  • mood:返回 commands.fether.fetherai.response.mood.<i> 随机心绪响应(语言资源中的表情或短句)。

/fetherai 本身会发 commands.fether.fetherai.usage;/fetherai text 不带 prompt 时发 commands.fether.fetherai.failed.noprompt。命令无副作用,每次仅做 addChatMessage 输出。

数值

数值 默认 范围
enableFetherAI true boolean
aiRandomness 0.1 [0.0, 1.0](相同 prompt 的随机概率)

Tab 补全

  • 一参:text / mood。

相关条目