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:希望在控制台增加一个"控制是否显示警告消息"的开关 #4

Open
Wind-Rise opened this issue Mar 18, 2023 · 2 comments

Comments

@Wind-Rise
Copy link

Describe the problem related to the feature request

### 我对新版koishi集成了rate-limit功能非常非常的高兴。

但是,我使用rate-limit的绝大部分原因是为了防止在聊天平台有人恶意刷屏**,因此我提交这个issue希望开发者添加一个
"控制是否显示警告消息"的开关集成在koishi控制台中。**

在使用rate-limit对"jrrp"命令的调用中,可以发现,rate-limit虽然的确阻止了jrrp信息的发出,但是却仍然发送了警告消息(如图)且发送不止一次

NV%37H7_THSH E@LXM26CC

这对于原本想要防止刷屏的我来讲实际上这个"rate-limit"却失去了它使用的价值。

Describe the solution you'd like

我希望开发者能腾出一点点时间给rate-limit_添加一个_:
"是否显示警告消息"
的开关在koishi的控制台中,让rate-limit不发送这类警告消息,不发送已限制的命令的任何消息到聊天平台中。

Describe alternatives you've considered

如果可以,希望开发者可以再费一点点小心思,把问题解决的更完美一点:
可以添加一个:
"仅发送一次(或多次,可设置)警告消息"的开关或者添加项。
这样一方面可以让发送消息的用户意识到聊天冷却另一方面也防止用户认为koishi没有反应而进一步刷屏

Additional context

截图中举例使用的插件:
插件市场:koishi-plugin-jrrp
Github:https://github.com/idlist/koishi-plugin-jrrp#readme

@ilharp
Copy link
Member

ilharp commented Mar 18, 2023

这个很有用,支持一下

@shigma
Copy link
Member

shigma commented Sep 1, 2023

会在近期考虑支持。

@shigma shigma transferred this issue from koishijs/koishi Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants