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

为 Action 添加 TaskLimit 注解限制 Action 同一时间重复运行方式 #40

Open
IceCream-QAQ opened this issue Sep 17, 2021 · 1 comment
Labels
需求 一个新的功能建议 将在近期获得更新。

Comments

@IceCream-QAQ
Copy link
Member

IceCream-QAQ commented Sep 17, 2021

提供三种不同的级别规定 Action 的重复任务运行限制。

限制类型

sender: 发送者。
source: 发送源
all: 全局

  • 当限制为发送者时,则在当前 Action 完成之前当前 QQ 下次发言无法触发本 Action。
  • 当限制为发送源时,如果为私聊,则发送源为发送者,同发送者。
    如果为群聊,则当前发送源为群,则在当前 Action 完成之前 全群所有成员下次发言无法触发本 Action。
  • 当限制为全局时,则在当前 Action 完成之前,所有人无法触发本 Action。

冷却时间

允许提供一个时间,来标明当前限制类型在执行本 Action 后的一段时间内仍无法触发本 Action。

例外权限

声明当拥有此权限的人,可以不受限制与冷却时间,重复使用本 Action。

@IceCream-QAQ IceCream-QAQ added 需求 一个新的功能建议 将在近期获得更新。 labels Sep 17, 2021
@IceCream-QAQ
Copy link
Member Author

例外权限部分将随权限 API 一同实现。

IceCream-QAQ added a commit that referenced this issue Dec 18, 2021
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

1 participant