WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

There is no output (anti-flood) control - implement queues with configurable antiflood #23

Closed Amunak closed 8 years ago

Amunak commented 9 years ago

This is pretty important before we can go live with the rewrite, since an error or something may get the bot easily kicked for flood and potentially k-lined from the server.

NanoSector commented 9 years ago

We probably want timers to be implemented for this.

Amunak commented 9 years ago

Yeah some kind of timing will have to be involved. I was thinking of somewhat "hard coding" it but if we make timers I guess we can just use those.

NanoSector commented 9 years ago

Should we implement the new queue manager around the say method in Bot.php?

NanoSector commented 9 years ago

We can implement queues on all outgoing data, and have a timer for the flush. How about, say, 3 seconds? Or would that cause too big of a delay?

NanoSector commented 9 years ago

This can be implemented in the module that is going to handle connections, possibly? Another possibility would be to create a generic flood control module based on callbacks etc.

NanoSector commented 8 years ago

Duplicate of #65, closing.