Change run_command to str

This commit is contained in:
Dusty.P 2018-04-14 02:11:13 -08:00
parent cfdf047aeb
commit 7fab42ab1b

View File

@ -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)