diff --git a/bot/extensions/admin.py b/bot/extensions/admin.py index ac67a5b..6f9f053 100644 --- a/bot/extensions/admin.py +++ b/bot/extensions/admin.py @@ -40,6 +40,7 @@ class Admin(discord.Cog): async def __restart_service(self, ctx: discord.ApplicationContext) -> None: await ctx.respond('attempting restart...') self.bot.logger.info('Restarting bot...') - process = await asyncio.create_subprocess_shell(cmd='sudo systemctl restart') - await process.communicate() + + process = await asyncio.create_subprocess_shell(cmd=f'sudo systemctl restart {self.bot.config.service_name}') + # await process.communicate()