diff --git a/python/main.py b/python/main.py index 3547a29..1169cb5 100644 --- a/python/main.py +++ b/python/main.py @@ -48,9 +48,10 @@ async def unloadext(ctx, extension): @bot.command(hidden=True) @commands.is_owner() async def update(ctx): - result = os.popen('git pull') - await ctx.send(str(result.read())) - os.execl(sys.executable, os.path.abspath(__file__), *sys.argv) + result = str(os.popen('git pull').read()) + await ctx.send('``' + result + '``') + if 'Already up to date' not in result: + os.execl(sys.executable, os.path.abspath(__file__), *sys.argv) if __name__ == "__main__":