根本原因: 回覆 A bot 的訊息並 tag B bot 時,A 因「被回覆」觸發搶答, B 才是使用者真正要叫的對象。 修法: 群組觸發改為 tag 優先:訊息含任何 bot tag(@xxx...bot)時, 只有第一個被 tag 的 bot 回應,被回覆的 bot 自動讓位; 沒有 bot tag 時維持原邏輯(回覆我 → 我回應)。 tag 一般使用者(非 bot username)不影響判定。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
42 lines
867 B
JSON
42 lines
867 B
JSON
{
|
|
"name": "telegram-codex-bot",
|
|
"version": "0.1.10",
|
|
"description": "Telegram bot powered by the local Codex CLI — zero-dependency, pm2-managed, with a built-in PM2 web viewer",
|
|
"license": "MIT",
|
|
"type": "commonjs",
|
|
"publishConfig": {
|
|
"registry": "https://jianmiau.ddns.net/api/packages/AI/npm/"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "ssh://git@jianmiau.ddns.net:8022/AI/telegram-codex-bot.git"
|
|
},
|
|
"main": "src/index.js",
|
|
"bin": {
|
|
"telegram-codex-bot": "bin/cli.js",
|
|
"tgcodex": "bin/cli.js"
|
|
},
|
|
"files": [
|
|
"bin/",
|
|
"src/",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"start": "node bin/cli.js web",
|
|
"dev": "node --watch src/web/server.js"
|
|
},
|
|
"keywords": [
|
|
"telegram",
|
|
"bot",
|
|
"codex",
|
|
"codex-cli",
|
|
"pm2",
|
|
"ai",
|
|
"agent"
|
|
]
|
|
}
|