- Remove duplicate claude_api provider to fix automatic failover - Enhance error detection with HTTP status codes and more indicators - Add comprehensive README documentation with manual switching - Implement Discord bot with Claude Code CLI integration - Support /terminal and /claude commands with AI-powered responses 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
# Discord Bot Slash Commands List
|
||
# 此文件用于热更新命令系统,修改后自动生效
|
||
|
||
## 核心命令
|
||
/terminal <command> - AI控制终端系统,支持自然语言和shell命令
|
||
/claude <question> - 直接与Claude Code CLI对话,用于一般性问答
|
||
/help - 显示命令帮助信息
|
||
|
||
## 使用示例
|
||
/terminal ls
|
||
/terminal docker ps
|
||
/terminal 查看当前目录文件
|
||
/terminal 查看Docker容器状态
|
||
/terminal 启动nginx容器
|
||
/claude 如何优化Docker容器性能?
|
||
/claude 解释一下这个错误信息
|
||
|
||
## 限制说明
|
||
- 仅限于~/docker/*目录操作
|
||
- 不支持危险命令(如rm -rf)
|
||
- 自动1小时会话超时
|
||
- AI智能理解自然语言命令
|
||
|
||
## 计划中的命令 (未实现)
|
||
/terminal_fin <command> - AI辅助金融策略开发
|
||
/fin_portfolio - 显示投资组合当日盈亏
|
||
/fin_report - 获取最新FinancialReport.pdf
|
||
/db_query <sql> - 数据库查询
|
||
/db_append <table> <data> - 数据库追加
|
||
/db_delete <table> <condition> - 数据库删除
|
||
/db_add <table> <data> - 添加数据记录
|
||
/db_update <table> <data> <condition> - 更新数据记录 |