Changed run_command to pass multiple strings

This commit is contained in:
Dusty.P 2018-04-14 02:12:44 -08:00
parent 7fab42ab1b
commit 6ee4651f37

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)