1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Added ctx.message deletion, small str change

This commit is contained in:
Myned 2017-10-02 17:32:53 -04:00
parent ac17187b1a
commit fd464d948f

View file

@ -48,10 +48,11 @@ async def die(ctx):
@bot.command(name=',restart', aliases=[',res', ',r'], hidden=True)
@commands.is_owner()
@checks.del_ctx()
async def restart(ctx):
try:
if isinstance(bot.get_channel(config['startup_channel']), discord.TextChannel):
await bot.get_channel(config['shutdown_channel']).send('Am go :b: rite becc. **Have noon.** 💤')
await bot.get_channel(config['shutdown_channel']).send('Am :b: rite becc. **Have noon.** 💤')
process = subprocess.run(['python3', 'restart.py'])
print(process.returncode)
await bot.close()