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:
parent
ac17187b1a
commit
fd464d948f
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue