<commit_before>const request = require('request');

module.exports = function plugin(bot, info)
{
  'use strict';
  const plugin = {};
  function submit(options)
  {
    request.post(options, (err, response, body) =>
    {
      if(err)
      {
        console.log(err)
      }
      else
      {
       console.log(body); 
      }
    });
  }
  function getInfo()
  {
    return new Promise((resolve, reject) =>
    {
      resolve({server_count: Object.keys(bot.servers).length});
    });
  }
  plugin.updateBotLists = function()
  {
    getInfo().then((status) =>
    {
      let botsPW = {
      url: 'https://bots.discord.pw/api/bots/193403332046487552/stats',
      json: true,
      headers: {
        'Authorization': info.config.api.botsPW
      },
      form: status
      }
      let botsOrg = {
        url: 'https://discordbots.org/api/bots/193403332046487552/stats',
        json: true,
        headers: {
          'Authorization': info.config.api.botsOrg
        },
        form: status
      }
      submit(botsOrg);
      submit(botsPW);
    });
  }

  return plugin;
}
<commit_msg>Error in POST?<commit_after>const request = require('request');

module.exports = function plugin(bot, info)
{
  'use strict';
  const plugin = {};
  function submit(options)
  {
    request.post(options, (err, response, body) =>
    {
      if(err)
      {
        console.log(err)
      }
      else
      {
       console.log(body); 
      }
    });
  }
  function getInfo()
  {
    return new Promise((resolve, reject) =>
    {
      resolve({"server_count": Object.keys(bot.servers).length});
    });
  }
  plugin.updateBotLists = function()
  {
    getInfo().then((status) =>
    {
      console.log(status);
      let botsPW = {
      url: 'https://bots.discord.pw/api/bots/193403332046487552/stats',
      json: true,
      headers: {
        'Authorization': info.config.api.botsPW
      },
      form: status
      }
      let botsOrg = {
        url: 'https://discordbots.org/api/bots/193403332046487552/stats',
        json: true,
        headers: {
          'Authorization': info.config.api.botsOrg
        },
        form: status
      }
      submit(botsOrg);
      submit(botsPW);
    });
  }

  return plugin;
}

{'fraction_non_alphanumeric': 0.14663677130044844, 'fraction_numerical': 0.03228699551569507, 'mean_word_length': 1.9866131191432397, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6156481', 'n_tokens_mistral': 804, 'n_tokens_neox': 746, 'n_words': 119}