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

module.exports = {
  pattern: "(what('s| is) the )?current version",
  reply: function(message, match, reply) {
    https.get('https://raw.githubusercontent.com/esoui/esoui/master/README.md', function(response) {
      response.setEncoding('utf-8');
      response.on('data', function(chunk) {
        const version = chunk.match(/Last update: (.+) on/);
        reply(version[1]);
      });
    });
  }
};<commit_msg>Accept both live and pts version<commit_after>const https = require('https');

module.exports = {
  pattern: "(what('s| is) the )?(current|live|pts) version",
  reply: function(message, match, reply) {
    const branch = match[3] === 'pts' ? 'pts' : 'master';
    https.get(`https://raw.githubusercontent.com/esoui/esoui/${branch}/README.md`, function(response) {
      response.setEncoding('utf-8');
      response.on('data', function(chunk) {
        const version = chunk.match(/Last update: (.+) on/);
        reply(version[1]);
      });
    });
  }
};
{'fraction_non_alphanumeric': 0.1935483870967742, 'fraction_numerical': 0.004887585532746823, 'mean_word_length': 3.5309734513274336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6567955', 'n_tokens_mistral': 333, 'n_tokens_neox': 330, 'n_words': 61}