-
Notifications
You must be signed in to change notification settings - Fork 147
/ command rate limit #75
Comments
It can be easily done; the problem is that I can update the repository now since I've got no midjourney subscription to test changes in code. |
Any hints on how to achieve it? I can try to test and make a PR. |
根据用户组没看到文档,你可以为每个用户添加限制:@commands.cooldown(1, 120, commands.BucketType.user) |
感谢指路。我又参考了一些公开代码,为单个指令增加了@commands.cooldown,并在代码末尾增加了触发cooldown的处理: @bot.event 得到的效果是成功设置了限制,机器人会在公屏打出频率受限的提示语句(想要你那种只给发指令的人提示),后台出现“discord.errors.HTTPException: 405 Method Not Allowed”的报错但没有影响运行。 总之效果差强人意,可以麻烦你po一下你的改法吗?外行爱好者,问了外行话见谅! |
Hey we are a small group of ppl starting to share a basic plan(200 img generations per month).
Is there a way to apply a rate limit to the / commands just like how we can set limit to the text message in the channel settings? Otherwise the 200 allowance would be drained too quickly.
Thanks!
The text was updated successfully, but these errors were encountered: