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

Remove Rate Limit #1407

Closed
jeffreyroberts opened this issue Nov 10, 2018 · 1 comment
Closed

Remove Rate Limit #1407

jeffreyroberts opened this issue Nov 10, 2018 · 1 comment
Labels

Comments

@jeffreyroberts
Copy link

I have read a few issues here about rate limiting, some say fork, some say add @Rate(600) some say return sopel.module.NOLIMIT

however, I can not get any of those solutions to work yet, I haven't forked yet, but thats what is next if need be

 @sopel.module.commands('ohelp')
 def ohelp(bot, trigger):
     rate = 600
     bot.say('  _          _')
     bot.say(' | |__   ___| |_ __')
     bot.say(' | \'_ \\ / _ \\ | \'_ \\')
     bot.say(' | | | |  __/ | |_) |')
     bot.say(' |_| |_|\___|_| .__/')
     bot.say('              |_|')
     return sopel.module.NOLIMIT

Any ideas on how I can prevent the rate limit?

@dgw dgw added the Question label Nov 10, 2018
@dgw
Copy link
Member

dgw commented Nov 10, 2018

In this case, by "rate limiting", I assume you refer to the flood protection mechanism.

The @sopel.module.rate() decorator and sopel.module.NOLIMIT return value affect command rate-limiting—how often a given user can trigger a specific bot command/function. They do not affect the flood-protection, which is designed to keep Sopel from being kicked off networks for posting lines too fast.

At present, flood protection is not configurable (#1342).

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