[Mod] Allow admins to choose amount of repeats for "deleterepeats" (#2437)

* feat(mod): configurable amount of repeats for "deleterepeats"

resolves #2267

* fix(mod): check user input instead of changing it if it's invalid

* fix(mod): only purge cache when argument is valid

* perf(mod): fetch repeats from config only when guild not in cache
This commit is contained in:
jack1142
2019-04-23 16:01:20 +02:00
committed by Michael H
parent 47723cee33
commit 460b4bb3f2
4 changed files with 90 additions and 25 deletions

View File

@@ -2,5 +2,7 @@ from redbot.core.bot import Red
from .mod import Mod
def setup(bot: Red):
bot.add_cog(Mod(bot))
async def setup(bot: Red):
cog = Mod(bot)
await cog.initialize()
bot.add_cog(cog)