import discord
import os
from discord.ext import commands
from sys import argv
from subprocess import call

class botupdate:
    """
    Bot Updating Commands (Owners Only)
    """
    def __init__(self, bot):
        self.bot = bot
        print('Addon "{}" loaded'.format(self.__class__.__name__))

    @commands.has_permissions(administrator=True)
    @commands.command(pass_context=True, name="pull")
    async def pull(self, ctx):
        """Pull from GitHub (Owner Only)"""
        call(['git', 'pull'])
        await self.bot.say("Changes pulled from GitHub :ok_hand:")

def setup(bot):
    bot.add_cog(botupdate(bot))

@@ -1,12 +1,40 @@
+from subprocess import call%0A
 import disco
@@ -103,36 +103,8 @@
 argv
-%0Afrom subprocess import call
 %0A%0Acl
@@ -561,20 +561,71 @@
 tHub
- :ok_hand:%22)
+, Restarting...%22)%0A        await self.bot.close()%0A        return
 %0A%0Ade

make bot autorestart from .pull