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

Allow willie.module.rate To Apply To All Nicks #718

Closed
prestonconnors opened this issue Jan 20, 2015 · 3 comments
Closed

Allow willie.module.rate To Apply To All Nicks #718

prestonconnors opened this issue Jan 20, 2015 · 3 comments
Labels

Comments

@prestonconnors
Copy link

Hello,

I think a nice feature in willie would have some flag that is applicable to willie.module.rate to allow rate limiting of certain commands to only be activated by any/all nicks.

Example situation is a large chat room where I would like the 'hello' command to bot.reply('hello world!') only once every 300 seconds no matter how many people typed '.hello' after the first person activated the '.hello' command. If there is a current way of doing this please let me know and disregard this feature request!

@hroafelme
Copy link

This would be very good. I can't belive the bot does not have a global post rate.

When you run the bot in a channel with over 1000 users it can be crazy, for example twich.tv

@tyrope
Copy link

tyrope commented Jan 27, 2015

@hroafelme The bot DOES have a global rate limiter. But it limits the entirety of the bot's IRC output.

@dgw
Copy link
Member

dgw commented Jun 25, 2015

How about a new @globalrate or @chanrate decorator?

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

6 participants