mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user