fix(ops): simplify /rate in ops help and update rate usage examples
This commit is contained in:
@@ -125,7 +125,7 @@ Bot 主要用于接收 OPS 命令并返回执行结果。支持 QQ Bot、Telegra
|
|||||||
| `/sub del <id>` | 删除订阅 |
|
| `/sub del <id>` | 删除订阅 |
|
||||||
| `/sub cancel` | 取消进行中的新增流程 |
|
| `/sub cancel` | 取消进行中的新增流程 |
|
||||||
| `/ops modules` | 查看模块启用状态 |
|
| `/ops modules` | 查看模块启用状态 |
|
||||||
| `/rate 138sgd to cny` | 实时货币转换(Google / Visa / Mastercard) |
|
| `/rate 138 sgd to cny` | 实时货币转换(Google / Visa / Mastercard) |
|
||||||
|
|
||||||
## 📜 Runbook(自动化工单)
|
## 📜 Runbook(自动化工单)
|
||||||
|
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ func (s *Service) helpText() string {
|
|||||||
"- /mail (邮箱状态)",
|
"- /mail (邮箱状态)",
|
||||||
"- /cfdav (CFDAV 用户管理)",
|
"- /cfdav (CFDAV 用户管理)",
|
||||||
"- /sub (订阅管理)",
|
"- /sub (订阅管理)",
|
||||||
"- /rate 138sgd to cny (实时汇率转换)",
|
"- /rate (实时汇率转换)",
|
||||||
"提示:发送 /cpa /cf /mail /cfdav /sub 获取各模块完整指令清单。",
|
"提示:发送 /cpa /cf /mail /cfdav /sub /rate 获取各模块完整指令清单。",
|
||||||
}
|
}
|
||||||
return strings.Join(lines, "\n")
|
return strings.Join(lines, "\n")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,5 +37,5 @@ func (m *Module) Handle(_ int64, cmd *command.ParsedCommand) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func help() string {
|
func help() string {
|
||||||
return "💱 汇率转换\n\n用法:/rate 138sgd to cny\n\n也支持:\n/rate 100 usd to cny\n/rate 50 eur -> sgd\n/rate 1000 php/cny\n\n数据源:Google Finance、Visa、Mastercard。Visa/万事达为官方结算汇率;Google 为市场参考价。"
|
return "💱 汇率转换\n\n用法:/rate 138 sgd to cny\n\n也支持:\n/rate 138sgd to cny\n/rate 100 usd to cny\n/rate 50 eur -> sgd\n/rate 1000 php/cny\n\n数据源:Google Finance、Visa、Mastercard。Visa/万事达为官方结算汇率;Google 为市场参考价。"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user