Closed ZeroKnight closed 3 years ago
Deciding to scrap this idea. There's very little "boilerplate" common enough between features (currently) that would warrant the overhead of a class, not to mention that how each module may use its cooldown deque will likely vary enough to cause using any implementation to be rigid and awkward.
The concept of a "cooldown"
deque
for various ZeroBot phrases is common enough in the current set of feature modules to warrant them and their associated logic (e.g._resize_*deque
) to be encapsulated into a class inZeroBot.common
.Ideas
deque
size)Should extenddeque
using the appropriate class, similar toUserDict
deque
since we'll be resizing them, which requires a copy.