<commit_before>/**
 * @file changelog command
 * @author <NAME> (a.k.a k3rn31p4nic)
 * @license MIT
 */

exports.exec = (Bastion, message) => {
  const CHANGES = require('../../changes.json');

  let changes = [];
  for (let section in CHANGES) {
    if (CHANGES.hasOwnProperty(section)) {
      if (section === 'date' || section === 'image' || !CHANGES[section].length) continue;

      changes.push({
        name: section,
        value: `- ${CHANGES[section].join('\n- ')}`
      });
    }
  }

  changes.push(
    {
      name: '\u200B',
      value: '\u200B'
    },
    {
      name: 'Missed an update?',
      value: '[Check out our previous change logs](https://github.com/TheBastionBot/Bastion/releases).'
        + '\nJoin **Bastion HQ** and never miss an update: https://discord.gg/fzx8fkt'
    },
    {
      name: 'Let\'s Connect...',
      value: 'Connect with Bastion on [Twitter](https://twitter.com/TheBastionBot) and [Reddit](https://reddit.com/r/TheBastionBot).'
    },
    {
      name: 'Support Bastion\'s Development',
      value: '[Support the development of Bastion](https://bastionbot.org/donate) to keep it running forever and get cool rewards!'
    }
  );

  message.channel.send({
    embed: {
      color: Bastion.colors.BLUE,
      title: `Bastion Bot v${Bastion.package.version} Changelog`,
      url: 'https://github.com/TheBastionBot/Bastion/releases',
      fields: changes,
      image: {<commit_msg>commands: changelog command will link to current version's changelogs<commit_after>/**
 * @file changelog command
 * @author <NAME> (a.k.a k3rn31p4nic)
 * @license MIT
 */

exports.exec = (Bastion, message) => {
  const CHANGES = require('../../changes.json');

  let changes = [];
  for (let section in CHANGES) {
    if (CHANGES.hasOwnProperty(section)) {
      if (section === 'date' || section === 'image' || !CHANGES[section].length) continue;

      changes.push({
        name: section,
        value: `- ${CHANGES[section].join('\n- ')}`
      });
    }
  }

  changes.push(
    {
      name: '\u200B',
      value: '\u200B'
    },
    {
      name: 'Missed an update?',
      value: '[Check out our previous change logs](https://github.com/TheBastionBot/Bastion/releases).'
        + '\nJoin **Bastion HQ** and never miss an update: https://discord.gg/fzx8fkt'
    },
    {
      name: 'Let\'s Connect...',
      value: 'Connect with Bastion on [Twitter](https://twitter.com/TheBastionBot) and [Reddit](https://reddit.com/r/TheBastionBot).'
    },
    {
      name: 'Support Bastion\'s Development',
      value: '[Support the development of Bastion](https://bastionbot.org/donate) to keep it running forever and get cool rewards!'
    }
  );

  message.channel.send({
    embed: {
      color: Bastion.colors.BLUE,
      title: `Bastion Bot v${Bastion.package.version} Changelog`,
      url: `https://github.com/TheBastionBot/Bastion/releases/v${Bastion.package.version}`,
      fields: changes,
      image: {
{'fraction_non_alphanumeric': 0.16779431664411368, 'fraction_numerical': 0.007442489851150203, 'mean_word_length': 2.7335858585858586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1328080', 'n_tokens_mistral': 1021, 'n_tokens_neox': 995, 'n_words': 220}