jack1142 460b4bb3f2 [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
2019-04-23 10:01:20 -04:00

9 lines
149 B
Python

from redbot.core.bot import Red
from .mod import Mod
async def setup(bot: Red):
cog = Mod(bot)
await cog.initialize()
bot.add_cog(cog)