code: def cmd(send, msg, args):
      
      if 'livedoc' in args['name']:
          url = 'http://livedoc.tjhsst.edu/w'
          name = 'livedoc'
      else:
          url = 'http://en.wikipedia.org/w'
          name = 'wikipedia'
      if not msg:
          msg = get_rand(url)
      params = {'format': 'json', 'action': 'query', 'list': 'search', 'srlimit': '1', 'srsearch': msg}
      data = get('%s/api.php' % url, params=params).json()
      try:
          article = data['query']['search'][0]['title']
      except IndexError:
          send("%s isn't important enough to have a %s article." % (msg, name))
          return
      article = article.replace(' ', '_')
      # wikipedia uses /w for api and /wiki for articles
      url += 'iki'
      send('%s/%s' % (url, article))
docs: Returns the first wikipedia result for the argument.
  
      Syntax: {command} [term]