<commit_before>const getUpdates = (bot, msg, cmd, richEmbed) => {
  msg.channel.send({
    embed: richEmbed.setColor('#ff0000').setDescription(
`Check your DMs for the latest update.\n
To view all bot updates, join the [Stop Discord Server](https://discord.gg/FXCe7bX) and view the [#updates](https://discord.gg/FXCe7bX) channel.
You can even see updates before they're released in the [#github-log](https://discord.gg/FXCe7bX).`
    )
  });

  getUpdateDM(bot, msg, cmd, richEmbed)
}

const getUpdateDM = (bot, msg, cmd, richEmbed) => {
  msg.member.user.createDM()
    .then((channel) => {
      channel.send({
        embed: richEmbed.setColor('#ff0000').setDescription(
`**Update #3**

- Something people have wanted for a long time: multiple words can be stopped or deleted at once. Words must be separated with a space. Example: ${"`" + "!stop word1 word2 word3" + "`"}.
- ${"`" + "go" + "`"} command must still be used on one word at a time.
- Bot's prefix is now customizable through ${"`" + "set prefix" + "`"}. User must have manage messages or administrator permissions to change settings.
- Added ${"`" + "set" + "`"} command for all server settings (only one setting currently available).
- Added ${"`" + "updates" + "`"} command. Bot DMs latest updates and links user to the Stop Bot support server's #updates channel and #github-log channel.
- Updated ${"`" + "help" + "`"} command with set section, set commands, and updates command.

**Other updates**

- Server count in bot's user presence is now updated every time a server invites Stop.
- Started testing and developing bot on separate "Stop Testing" bot to avoid usage interruption.

If you enjoy using Stop bot, please upvote it on the [Discord Bot List](https://discordbots.org/bot/340404757648769025)! :heart:`
        )
      })
  });
}

export default getUpdates;
<commit_msg>Clarity of words in updates<commit_after>const getUpdates = (bot, msg, cmd, richEmbed) => {
  msg.channel.send({
    embed: richEmbed.setColor('#ff0000').setDescription(
`Check your DMs for the latest update.\n
To view all bot updates, join the [Stop Discord Server](https://discord.gg/FXCe7bX) and view the [#updates](https://discord.gg/FXCe7bX) channel.
You can even see updates before they're released in the [#github-log](https://discord.gg/FXCe7bX).`
    )
  });

  getUpdateDM(bot, msg, cmd, richEmbed)
}

const getUpdateDM = (bot, msg, cmd, richEmbed) => {
  msg.member.user.createDM()
    .then((channel) => {
      channel.send({
        embed: richEmbed.setColor('#ff0000').setDescription(
`**Update #3**

- Something people have wanted for a long time: multiple words can be stopped or deleted at once. Words must be separated with a space. Example: ${"`" + "!stop word1 word2 word3" + "`"}.
- ${"`" + "go" + "`"} command must still be used on one word at a time.
- Bot's prefix is now customizable through ${"`" + "set prefix" + "`"}. User must have manage messages or administrator permissions to change settings.
- Added ${"`" + "set" + "`"} command for all bot settings (only one setting currently available).
- Added ${"`" + "updates" + "`"} command. Bot DMs latest updates and links user to the Stop Bot support server's #updates channel and #github-log channel.

**Other updates**

- Updated ${"`" + "help" + "`"} command with set section, set commands, and updates command. Also subtle update to stop and delete commands (${"`" + "stop <word>" + "`"} became ${"`" + "stop <words>" "`"}).
- Server count in bot's user presence is now updated every time a server invites Stop.
- Started testing and developing bot on separate "Stop Testing" bot to avoid usage interruption.
- Dev note: Code more modular, such as permissions checks.

If you enjoy using Stop bot, please upvote it on the [Discord Bot List](https://discordbots.org/bot/340404757648769025)! :heart:`
        )
      })
  });
}

export default getUpdates;

{'fraction_non_alphanumeric': 0.1388888888888889, 'fraction_numerical': 0.016975308641975308, 'mean_word_length': 3.998714652956298, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 8, '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': '4771638', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1132, 'n_words': 450}