old_contents: import subprocess
  import sys
  
  from ._shared import *
  
  
  class Update(Rule):
      """Handles bot updating"""
  
      def __init__(self, bot, config):
          self.bot = bot
          self.config = config
  
      def __call__(self, serv, author, args):
          """Handles bot updating"""
          if author in self.config.get("admins"):
              subprocess.Popen([self.bot.basepath+"updater.sh",
                                self.bot.basepath])
              self.bot.ans(serv, author, "I will now update myself.")
              self.bot.close()
              sys.exit()
  
      def close(self):
          pass
  
new_contents: import subprocess
  import sys
  
  from ._shared import *
  
  
  class Update(Rule):
      """Handles bot updating"""
  
      def __init__(self, bot, config):
          self.bot = bot
          self.config = config
  
      def __call__(self, serv, author, args):
          """Handles bot updating"""
          if(self.config.get("admins") is None or
             author in self.config.get("admins")):
              subprocess.Popen([self.bot.basepath+"updater.sh",
                                self.bot.basepath])
              self.bot.ans(serv, author, "I will now update myself.")
              self.bot.close()
              sys.exit()
  
      def close(self):
          pass
  
subject: Fix updater