Changed Email checker

This commit is contained in:
Dusty.P 2018-04-14 03:18:49 -08:00
parent a3e59c75a3
commit bb39f1f1b4

View File

@ -27,7 +27,7 @@ class Git():
em.set_thumbnail(url=f'{ctx.guild.me.avatar_url}')
result = await asyncio.wait_for(self.bot.loop.create_task(run_command('git fetch --all')),120) + '\n'
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git reset --hard origin/master')),120) + '\n'
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git show --stat | sed "s/.*@.*[.].*/<email>/g"')),10)
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git show --stat | sed -r "s/^(.*? |)[^@]+@[^ ]+/\1email/g"')),10)
results = paginate(result, maxlen=1014)
for page in results[:5]:
em.add_field(name='', value=f'{page}')