old_contents: import re
  import random
  import requests
  import json
  try:
      r = requests.get('http://api.shithouse.tv')
  
  
      #Solution with json parsing
      parsed_json = json.loads(r.text)
      num_memes = len(parsed_json)
      rnd = random.randrange(0, num_memes)
      if parsed_json[rnd]['nsfw']:
          shit_links = "{nsfw} {bump}.shithouse.tv".format(bump = parsed_json[rnd]['name'], nsfw = "NSFW")
      else:
          shit_links = "{bump}.shithouse.tv".format(bump = parsed_json[rnd]['name'])
  except:
      shit_links = "shit's fucked bro"
      num_memes = "fuck you"
  def run(data, settings):
      if 'dank memes' in data['payload'].lower():
          return shit_links
  #todo add more SICK STATZ
      if 'shithouse stats' in data['payload'].lower():
  	return "Total Memes: {num}".format(num = num_memes)
  
new_contents: import random
  import requests
  import json
  
  
  def gimme():
      try:
          r = requests.get('http://api.shithouse.tv')
  
          # Solution with json parsing
          parsed_json = json.loads(r.text)
          num_memes = len(parsed_json)
          rnd = random.randrange(0, num_memes)
          shit_link = []
  
          if parsed_json[rnd]['nsfw']:
              shit_link.append('\x0304[NSFW]\x0F')
  
          shit_link.append('\x0310http://{0}.shithouse.tv'.format(parsed_json[rnd]['name']))
      except:
          shit_link = "shit's fucked bro"
          num_memes = "fuck you there's none"
  
      return (' '.join(shit_link), num_memes)
  
  
  def run(data, settings):
      answer = gimme()
  
      if 'dank memes' in data['payload'].lower():
          return answer[0]
  
      # todo add more SICK STATZ
      if 'shithouse stats' in data['payload'].lower():
          return "Total Memes: {0}".format(answer[1])
  
subject: update shithouse fetcher