old_contents: import urllib.request
  import urllib.error
  import json
  import plugin
  import command
  import message
  import caching
  import requests
  import random
  
  def onInit(plugin):
      star_command = command.command(plugin, 'star', shortdesc='Post a random picture of Star Butterfly to the channel')
      goldfish_command = command.command(plugin, 'goldfish', shortdesc='Post a random picture of a goldfish to the channel')
      return plugin.plugin.plugin(plugin, 'randimg', [star_command, goldfish_command])
  
  def onCommand(message_in):
      # Star
      if message_in.command == 'star':
          headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
          r = requests.get("https://starbooru.com/api/posts?offset=0&limit=50&query=safety:safe%20star_butterfly%20solo", headers=headers, verify=False)
          jsonG = r.json()
          print(len(jsonG['results']))
          randIMG = random.choice(jsonG['results'])
          filename = str(randIMG['id']) + '.' + randIMG['contentUrl'].split(".")[-1]
          caching.downloadToCache(randIMG['contentUrl'], filename, caller='star', sslEnabled=False)
          return message.message(file='cache/star_' + filename)
  
      # Goldfish
      if message_in.command == 'goldfish':
          try:
              f = urllib.request.urlopen("http://goldfishapi.azurewebsites.net/goldfish/rand.php").read().decode("utf-8")
          except urllib.error.URLError as e:
              return message.message(body='There was an issue connecting to goldfish API.'.format(message_in.body))
  
          imageName = f.split('/')
          caching.downloadToCache(f, imageName[-1], caller='goldfish')
  
          return message.message(file='cache/goldfish_' + imageName[-1])
  
new_contents: import urllib.request
  import urllib.error
  import json
  import plugin
  import command
  import message
  import caching
  import requests
  import random
  
  def onInit(plugin):
      star_command = command.command(plugin, 'star', shortdesc='Post a random picture of Star Butterfly to the channel')
      goldfish_command = command.command(plugin, 'goldfish', shortdesc='Post a random picture of a goldfish to the channel')
      return plugin.plugin.plugin(plugin, 'randimg', [star_command, goldfish_command])
  
  def onCommand(message_in):
      # Star
      if message_in.command == 'star':
          headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
          r = requests.get("https://starbooru.com/api/posts?offset=0&limit=100&query=safety:safe%20star_butterfly%20solo", headers=headers, verify=False)
          jsonG = r.json()
          print(len(jsonG['results']))
          randIMG = random.choice(jsonG['results'])
          filename = str(randIMG['id']) + '.' + randIMG['contentUrl'].split(".")[-1]
          caching.downloadToCache(randIMG['contentUrl'], filename, caller='star', sslEnabled=False)
          return message.message(file='cache/star_' + filename)
  
      # Goldfish
      if message_in.command == 'goldfish':
          try:
              f = urllib.request.urlopen("http://goldfishapi.azurewebsites.net/goldfish/rand.php").read().decode("utf-8")
          except urllib.error.URLError as e:
              return message.message(body='There was an issue connecting to goldfish API.'.format(message_in.body))
  
          imageName = f.split('/')
          caching.downloadToCache(f, imageName[-1], caller='goldfish')
  
          return message.message(file='cache/goldfish_' + imageName[-1])
  
subject: Increase Star image set from 50 to 100