<commit_before>'use strict';
exports.info = {
  desc: 'Show latency with a \'Pong!\' message.',
  usage: '',
  aliases: [],
  permissions: ['SEND_MESSAGES', 'MANAGE_MESSAGES'],
};

exports.run = (client, msg, params = []) => new Promise((resolve, reject) => {
  const array = [
    msg.channel.send(params.join(' ')),
    msg.delete(),
  ];
  Promise.all(array).then(resolve).catch(reject);
});
<commit_msg>delete if we can but still say<commit_after>'use strict';
exports.info = {
  desc: 'Show latency with a \'Pong!\' message.',
  usage: '',
  aliases: [],
  permissions: ['SEND_MESSAGES'],
};

exports.run = (client, msg, params = []) => new Promise((resolve, reject) => {
  const array = [
    msg.channel.send(params.join(' ')),
  ];
  if (msg.channel.permissionsFor(client.user).has('MANAGE_MESSAGES')) array.push(msg.delete());
  Promise.all(array).then(resolve).catch(reject);
});

{'fraction_non_alphanumeric': 0.20898876404494382, 'fraction_numerical': 0.0, 'mean_word_length': 4.335329341317365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '6367902', 'n_tokens_mistral': 308, 'n_tokens_neox': 303, 'n_words': 61}