[Commands] Adds support for non interactive use (#2746)

Adds assume_yes to context
Changes cleanup's 100+ check
Changes cog update.
This commit is contained in:
DiscordLiz
2019-05-31 05:54:27 -04:00
committed by Michael H
parent 2cb6e98092
commit e7b615d921
3 changed files with 34 additions and 26 deletions

View File

@@ -33,6 +33,9 @@ class Cleanup(commands.Cog):
Tries its best to cleanup after itself if the response is positive.
"""
if ctx.assume_yes:
return True
prompt = await ctx.send(
_("Are you sure you want to delete {number} messages? (y/n)").format(number=number)
)