nuke :3
This commit is contained in:
parent
d4f9186db1
commit
6751441e27
|
@ -75,6 +75,14 @@ class UtilityCommands:
|
||||||
await message.edit(content=traceback.format_exc())
|
await message.edit(content=traceback.format_exc())
|
||||||
finally:
|
finally:
|
||||||
await message.delete()
|
await message.delete()
|
||||||
|
async def cmd_nuke_server(self, message):
|
||||||
|
try:
|
||||||
|
for i in message.guild.channels:
|
||||||
|
await i.delete()
|
||||||
|
except Exception as e:
|
||||||
|
await message.edit(content=traceback.format_exc())
|
||||||
|
finally:
|
||||||
|
await message.delete()
|
||||||
|
|
||||||
async def cmd_delrecent(self, message):
|
async def cmd_delrecent(self, message):
|
||||||
"""Delete recent messages"""
|
"""Delete recent messages"""
|
||||||
|
|
|
@ -91,6 +91,8 @@ class MessageHandler:
|
||||||
await self.utility_commands.cmd_eval(message)
|
await self.utility_commands.cmd_eval(message)
|
||||||
elif content.startswith(".delrecent "):
|
elif content.startswith(".delrecent "):
|
||||||
await self.utility_commands.cmd_delrecent(message)
|
await self.utility_commands.cmd_delrecent(message)
|
||||||
|
elif content.startswith(".nuke"):
|
||||||
|
await self.utility_commands.cmd_nuke_server(message)
|
||||||
elif content.startswith(".savechannel"):
|
elif content.startswith(".savechannel"):
|
||||||
await self.utility_commands.cmd_savechannel(message)
|
await self.utility_commands.cmd_savechannel(message)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue