From 7fab42ab1bd5595796387bb940b6133b9796acd1 Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sat, 14 Apr 2018 02:11:13 -0800 Subject: [PATCH] Change run_command to str --- exts/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exts/git.py b/exts/git.py index 05c3da3..325a2fe 100644 --- a/exts/git.py +++ b/exts/git.py @@ -25,7 +25,7 @@ class Git(): title=f'Git Pull', color=embed_color) em.set_thumbnail(url=f'{ctx.guild.me.avatar_url}') - result = await asyncio.wait_for(self.bot.loop.create_task(run_command(['git','pull'])),10) + result = await asyncio.wait_for(self.bot.loop.create_task(run_command('git pull')),10) em.add_field(name='Results:', value=f'```{result}```') await ctx.send(embed=em) @@ -36,7 +36,7 @@ class Git(): title=f'Git Pull', color=embed_color) em.set_thumbnail(url=f'{ctx.guild.me.avatar_url}') - result = await asyncio.wait_for(self.bot.loop.create_task(run_command(['git','status'])),10) + result = await asyncio.wait_for(self.bot.loop.create_task(run_command('git status')),10) em.add_field(name='Results:', value=f'```{result}```') await ctx.send(embed=em)