mirror of
https://github.com/Floriansylvain/Risitas_BOT.git
synced 2026-08-19 11:43:16 +02:00
Update main.py
This commit is contained in:
+4
-3
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user