NeuroAssassin / Toxic-Cogs

A collection of utility, moderation and fun plugins to Red - Discord Bot.
MIT License
48 stars 38 forks source link

Make users a class variable #20

Closed Theelx closed 4 years ago

Theelx commented 4 years ago

Making it so "await self.conf.all_users()" isn't called with every outer loop iteration of the bg_task, but only when a new user is registered, making bg_task much more efficient with large groups of users.

NeuroAssassin commented 4 years ago

Hi there, thanks for contributing! I've been looking at this for a bit, but I've noticed that this whole cog needs a rewrite. As a result, I will be closing this. However, I will put a form of this into the rewrite and credit you in the source code.