/gitpull should use the multiprocessing pool
@@ -86,7 +86,8 @@ class Owner(commands.Cog):
@commands.is_owner()
async def gitpull(self, ctx):
async with ctx.typing():
- os.system("sudo git pull > git_pull_log 2>&1")
+ system_call = functools.partial(os.system, "sudo git pull > git_pull_log 2>&1")
+ await self.bot.loop.run_in_executor(self.bot.ppool, system_call)
async with aiofiles.open("git_pull_log", "r") as f:
await self.bot.send(ctx, f"```diff\n{await f.read()}\n```")
