Printed out the amount of messages removed when pruning
This commit is contained in:
parent
3b3974eb0b
commit
0173ff0924
2 changed files with 7 additions and 6 deletions
7
bot.py
7
bot.py
|
@ -1,15 +1,16 @@
|
||||||
#!/usr/local/bin/python3.5
|
#!/usr/local/bin/python3.5
|
||||||
|
|
||||||
|
from discord.ext import commands
|
||||||
|
from cogs.utils import config
|
||||||
|
|
||||||
import discord
|
import discord
|
||||||
import traceback
|
import traceback
|
||||||
import logging
|
import logging
|
||||||
import datetime
|
import datetime
|
||||||
import pendulum
|
import pendulum
|
||||||
import os
|
import os
|
||||||
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
|
||||||
|
|
||||||
from discord.ext import commands
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||||
from cogs.utils import config
|
|
||||||
|
|
||||||
extensions = ['cogs.interaction',
|
extensions = ['cogs.interaction',
|
||||||
'cogs.core',
|
'cogs.core',
|
||||||
|
|
|
@ -247,7 +247,7 @@ class Mod:
|
||||||
count += 1
|
count += 1
|
||||||
if count >= limit:
|
if count >= limit:
|
||||||
break
|
break
|
||||||
await self.bot.say("{} messages succesfully pruned")
|
await self.bot.say("{} messages succesfully deleted".format(count))
|
||||||
|
|
||||||
@commands.group(aliases=['rule'], pass_context=True, no_pm=True, invoke_without_command=True)
|
@commands.group(aliases=['rule'], pass_context=True, no_pm=True, invoke_without_command=True)
|
||||||
@checks.custom_perms(send_messages=True)
|
@checks.custom_perms(send_messages=True)
|
||||||
|
|
Loading…
Reference in a new issue