old_contents: __author__ = "pyton_guy"
  
  """
  Commands for the #/r/nyc Freenode IRC bot
  
  This module is used by bot.py and is separate so that it can be hot-swapped.
  So if a command breaks, or a new one needs to be added, we don't need to
  disconnect the bot from IRC to fix it. This bot is built for five-nines!
  """
  
  import random
  import urllib2
  import json
  
  def reddit(self, user, channel, args):
      if args:
          uname = args
      else:
          uname = user
  
      try:
          response = urllib2.urlopen('http://reddit.com/user/%s/about.json' % uname)
      except urllib2.HttpError:
          self.msg(channnel, "User: %s does not exist." % uname)
          return
  
      jsn = response.read()
      
      data = json.loads(jsn)
      lk=data['link_karma']
      ck=data['comment_karma']
      
      self.msg(channel, "User: "+uname+" Link Karma: "+lk+" Comment Karma: "+ck)
  
  def karma (self, user, channel, args):
      """ Responds with a list of karma records. """
  
      # TODO: Make this into a for loop if someone complains >_>
      # Put together a readable karma list, and display it'
      karma_text = ", ".join([
                             "%s: %s" % (record["nick"], record["karma"])
                             for record in db.karma.find()
                             ])
      karma_text = karma_text.replace("<random>", str(random.randint(1, 1000)))
      
      self.msg(channel, str(karma_text))
  
  
  def production (self, user, channel, args):
      if args == "join":
          self.join("#/r/nyc")
      elif args == "leave":
          self.leave("#/r/nyc")
  
  
  def help (self, user, channel, args):
      """ Reponds with a list of commands. """
  
      commands = ["help", "karma", "this wasn't here before"]
      commands.sort()
      self.msg(channel, "Commands: %s" % ", ".join(commands))
  
  
new_contents: __author__ = "pyton_guy"
  
  """
  Commands for the #/r/nyc Freenode IRC bot
  
  This module is used by bot.py and is separate so that it can be hot-swapped.
  So if a command breaks, or a new one needs to be added, we don't need to
  disconnect the bot from IRC to fix it. This bot is built for five-nines!
  """
  
  import random
  import urllib2
  import json
  
  def reddit(self, user, channel, args):
      if args:
          uname = args
      else:
          # user is in the format "nick_name!~real_name@host.name"
          uname = user.split("!", 1)[0]
  
      try:
          # Let the JSON module read in the response from Reddit's User API
          data = json.load(urllib2.urlopen("http://reddit.com/user/%s/about.json" % uname))["data"]
          # Feed the JSON-sourced dictionary to a format string
          self.msg(
              channel,
              "User: {user}  Link Karma: {link_karma}  Comment Karma: {content_karma}".format(**data)
          )
      except urllib2.HttpError:
          self.msg(channnel, "User: %s does not exist." % uname)
      except KeyError:
          # Happens when the data is malformed, and we can't get what we want from the JSON
          self.msg(channnel, "Reddit broke :(")
  
  def karma (self, user, channel, args):
      """ Responds with a list of karma records. """
  
      # TODO: Make this into a for loop if someone complains >_>
      # Put together a readable karma list, and display it'
      karma_text = ", ".join([
                             "%s: %s" % (record["nick"], record["karma"])
                             for record in db.karma.find()
                             ])
      karma_text = karma_text.replace("<random>", str(random.randint(1, 1000)))
      
      self.msg(channel, str(karma_text))
  
  
  def production (self, user, channel, args):
      if args == "join":
          self.join("#/r/nyc")
      elif args == "leave":
          self.leave("#/r/nyc")
  
  
  def help (self, user, channel, args):
      """ Reponds with a list of commands. """
  
      commands = ["help", "karma", "this wasn't here before"]
      commands.sort()
      self.msg(channel, "Commands: %s" % ", ".join(commands))
  
  
subject: Add Jon's 'edits' (read the whole fucking module, damnit).