Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TODO: 交互改进 #2

Open
5 tasks done
iamwyh2019 opened this issue Sep 9, 2020 · 0 comments
Open
5 tasks done

TODO: 交互改进 #2

iamwyh2019 opened this issue Sep 9, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@iamwyh2019
Copy link
Owner

iamwyh2019 commented Sep 9, 2020

目前无论是机器人本体还是插件,每个触发词都有专门功能,一旦命令一多,使用起来对用户很不友好。

例如,表情生成器里“查看表情 [名字]”查看单个表情,“表情列表”查看表情列表,但是许多用户会尝试用“查看表情”查看列表,得到报错后再尝试其它命令。类似的例子还有clanrank的“查询排名”和“查询公会”,clanbattle的“查刀”和“出刀记录”。

基于两个月以来运营bot的经验,我打算稍微改进机器人的交互,包括两点:

  • 对于某些错误输入,如果能确定用户的意图,则调用目标功能。例如“查看表情”未接收到名字时调用列举所有表情的功能。
  • 不能确定用户意图,或者技术上难以实现时,在报错提示中给出建议。

TODO list:

  • 公会战clanbattle
    • 触发“查刀”时,若指定了at,或指定了Boss编号或周目数,则会调用“出刀记录”
  • 表情生成器memegenerator
    • 触发“查看表情”时,若名字留空,则调用“表情列表”
    • 触发“生成表情”时,若未传入内容,则直接返回该表情
  • 公会战排名clanrank
    • 触发“查询排名”时,若传入的排名不是数字,则尝试查询公会名
    • 触发“查询公会”时,若传入的名字是纯数字,提示用户可能想用“查询排名”
@iamwyh2019 iamwyh2019 added the enhancement New feature or request label Sep 9, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant