feat: 首次交互推送欢迎/引导消息#40
Open
1359484419 wants to merge 1 commit into
Open
Conversation
新用户扫码绑定后,微信里多出一个「好友」,但对面一片空白,不知道能干啥、 有哪些命令。 - 首次收到用户消息时,先推送一条欢迎语 + 常用命令引导 - 用 config.welcomed 持久化标志,全局只发一次 - 标志放在 config 而非 session,/clear、/reset 不会让欢迎语重复出现
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
新用户扫码绑定后,微信里多出一个「好友」,但对面一片空白——不知道能干啥、有哪些命令,缺少引导。
改动
/help、/status、/clear、/stop)config.welcomed持久化标志,全局只发一次config(而非session),因此/clear、/reset不会让欢迎语重复出现验证
npm run build(tsc)通过HOME验证welcomed持久化往返:首次为undefined(会触发)→ 保存后为true(不再触发),且workingDirectory等其他字段不受影响