Skip to content

Commit

Permalink
Merge pull request #13 from atorber/dev
Browse files Browse the repository at this point in the history
修复关键词错误
  • Loading branch information
atorber committed Aug 16, 2023
2 parents 85df571 + 385d04a commit 44d357f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WechatGPT",
"version": "0.14.2",
"version": "0.14.3",
"description": "wechat & chatgpt",
"type": "module",
"engines": {
Expand Down
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,7 @@ async function onMessage (msg: Message) {
let text = msg.text()

// 保留字转换,将保留字转换为内部指令
if (text === '帮助') text = '#帮助'
if (text === '开通服务') text = '#开通服务'
if (text === '积分充值') text = '#积分充值'
if (text === '联系客服') text = '#联系客服'
if ([ '帮助', '开通服务', '积分充值', '联系客服', '查询积分' ].includes(text)) text = '#' + text

log.info('talker:', JSON.stringify(talker))
// const alias = await talker.alias()
Expand Down

0 comments on commit 44d357f

Please sign in to comment.