feat: add vision, TTS, and browser tools (17 tools total)

- VisionTool: image analysis via Z.AI GLM-4V multimodal API
- TTSTool: text-to-speech via node-edge-tts (free, auto-sends audio to chat)
- BrowserTool: web page content extraction via cheerio (strips HTML, extracts text)
- All 3 wired into tools/index.js + bot tool definitions + handlers
- TTS handler auto-sends generated audio as voice message to chat
This commit is contained in:
admin
2026-05-05 16:52:12 +00:00
Unverified
parent d7f1e3db90
commit e92e9f5b9d
7 changed files with 793 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
"@grammyjs/runner": "^2.0.3",
"axios": "^1.14.0",
"chalk": "^5.4.0",
"cheerio": "^1.2.0",
"commander": "^12.0.0",
"discord.js": "^14.26.4",
"dotenv": "^16.4.5",
@@ -23,6 +24,7 @@
"fs-extra": "^11.2.0",
"glob": "^13.0.6",
"grammy": "^1.42.0",
"node-edge-tts": "^1.2.10",
"openai": "^4.77.0",
"p-queue": "^8.0.1",
"winston": "^3.13.0",