<commit_before>var fs = require('fs');

var cmd = module.exports = {};

cmd.args = ``;
cmd.permission = 0;
cmd.type = 1;
cmd.command = true;
cmd.help = "Help !";

cmd.run = (msg, args) => {
  function format(file, help) {
    var line = '.'+file.replace(".js", "")+"  = "+help+"";
    return line;
  }
  var files = fs.readdirSync("./commands/");
  var lines = ['**```css','[ Commands ]'];
  files.forEach(function(file) {
    if(file.indexOf(".js")) {
      var cmd = require("./"+file)
      if (cmd.type === 'basic') {
        lines.push(format(file, cmd.help));
      }
    }
  });
  lines.push('```**');
  var message = lines.join("\n");
  ys.send(msg.author, message);
  ys.send(msg.channel, 'All commands have been sent, look in your DM.');
};<commit_msg>Fix a bug with the help.js<commit_after>var fs = require('fs');

var cmd = module.exports = {};

cmd.args = ``;
cmd.permission = 0;
cmd.type = 1;
cmd.command = true;
cmd.help = "Help !";

cmd.run = (msg, args) => {
  function format(file, help) {
    var line = '.'+file.replace(".js", "")+"  = "+help+"";
    return line;
  }
  var files = fs.readdirSync("./commands/");
  var lines = ['**```css','[ Commands ]'];
  files.forEach(function(file) {
    if(file.indexOf(".js")) {
      var cmd = require("./"+file)
      if (cmd.type === 1) {
        lines.push(format(file, cmd.help));
      }
    }
  });
  lines.push('```**');
  var message = lines.join("\n");
  ys.send(msg.author, message);
  ys.send(msg.channel, 'All commands have been sent, look in your DM.');
};
{'fraction_non_alphanumeric': 0.23318092749836708, 'fraction_numerical': 0.0032658393207054214, 'mean_word_length': 3.020997375328084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1018341', 'n_tokens_mistral': 560, 'n_tokens_neox': 548, 'n_words': 125}