<commit_before>module.exports = function(data, Bot, Config, Helpers) {

  var value = Helpers.getCommandPart(data.message, '2', Config);

  if(Config.admin.indexOf(data.userID) == -1) {

    var message = '';

    message += '@';
    message += data.user;
    message += ' ';

    message += 'Vous n\'avez pas la permission d\'effectuer cette commande'

    Bot.sendMessage({
      'to': data.channelID,
      'message': message
    })

    return;

  }

  if(typeof value !== 'undefined'){

    switch(value){
      case 'all' : 

        Bot.getMessages({
          channel: data.channelID,
          limit: 500000
        }, function(error, messageArr) {

          for(i=0; i < messageArr.length; i++){
            Bot.deleteMessage({
              channel: data.channelID,
              messageID: messageArr[i].id
            });
          }
        });

      break;

      default:

        Bot.getMessages({
          channel: data.channelID,
          limit: parseInt(value)
        }, function(error, messageArr) {

          for (i = 0; i < messageArr.length; i++) { 

            Bot.deleteMessage({
              channel: data.channelID,
              messageID: messageArr[i].id
            });

          }

        });

      break;<commit_msg>Correction de la commande clean suite passage 1.8<commit_after>module.exports = function(data, Bot, Config, Helpers) {

  var value = Helpers.getCommandPart(data.message, '2', Config);

  if(Config.admin.indexOf(data.userID) == -1) {

    var message = '';

    message += '@';
    message += data.user;
    message += ' ';

    message += 'Vous n\'avez pas la permission d\'effectuer cette commande'

    Bot.sendMessage({
      'to': data.channelID,
      'message': message
    })

    return;

  }

  if(typeof value !== 'undefined'){

    switch(value){
      case 'all' : 

        Bot.getMessages({
          channel: data.channelID,
          limit: 500000
        }, function(error, messageArr) {

          for(i=0; i < messageArr.length; i++){
            Bot.deleteMessage({
              channel: data.channelID,
              messageID: messageArr[i].id
            });
          }
        });

      break;

      default:

        Bot.getMessages({
          channel: data.channelID,
          limit: parseInt(value)
        }, function(error, messageArr) {

          console.log(error)

          for (i = 0; i < messageArr.length; i++) { 

            Bot.deleteMessage({
              channel: data.channelID,
              messageID: messageArr[i].id
            });

          }

        });

      break;
{'fraction_non_alphanumeric': 0.13523956723338484, 'fraction_numerical': 0.008500772797527048, 'mean_word_length': 1.7195378151260505, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '2615868', 'n_tokens_mistral': 794, 'n_tokens_neox': 734, 'n_words': 159}