Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Feature: 针对用户设置的触发机制 #14

Open
ifrvn opened this issue Jan 17, 2023 · 1 comment
Open

Feature: 针对用户设置的触发机制 #14

ifrvn opened this issue Jan 17, 2023 · 1 comment
Labels

Comments

@ifrvn
Copy link

ifrvn commented Jan 17, 2023

Describe the problem related to the feature request

在使用中我希望同一个问题对不同用户的回答范围不同

比如有这样的问答:

  • # 老婆 老公1
  • # 老婆 老公2
  • # 老婆 老公3
  • # 老婆 才不是你老婆1
  • # 老婆 才不是你老婆2
  • # 老婆 才不是你老婆3
  • # 老婆 离婚!

存在以下场景:

  • 将“老公”这几个回答设置为不能被特定用户触发(黑名单机制),其余用户按概率触发所有回答
  • 只有特定用户才能触发“老公”这几个回答(白名单机制),其余用户按概率触发其他回答
  • 上述两种机制可以同时存在,比如用户A不会被喊“离婚”,同时用户B只会被喊“离婚”

Describe the solution you'd like

  • 使用 -u uid,uid,uid ... 或者 -u @user,@user,@user ... 参数添加白名单
  • 使用 -U uid,uid,uid ... 或者 -U @user,@user,@user ... 参数添加黑名单
  • #id -u 查询该问答的白名单列表
  • #id -U 查询该问答的黑名单列表
  • #id -ud uid,uid,uid ... 或者 #id -ud @user,@user,@user ... 移除白名单
  • #id -Ud uid,uid,uid ... 或者 #id -Ud @user,@user,@user ... 移除黑名单

冲突处理机制:

对于同一条问答,若uid已存在于白名单中,再添加到黑名单时则自动从白名单中移除,反之亦然。其他情况不存在冲突,按概率触发即可。

Describe alternatives you've considered

老实说,还是控制台操作比较方便,好加好查也好删

@MaikoTan
Copy link
Member

The dialogue plugin was created BEFORE the console, in the past days we have only commands and configuration files to configure the behaviour of an plugin. Obviously the command way is more user-friendly in this case.
It is true if there is a UI to make changes for the plugin, but currently no one has time to do the such thing. As always, we welcome everyone who would open a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants