<commit_before>const fs = require('fs');
const async = require('async');
const jsonfile = require('jsonfile');
const Logging = require('disnode-logger');
class Command {
    constructor(disnode) {
        this.disnode = disnode;
        if(this.disnode.botConfig.prefix){
          this.prefix = this.disnode.botConfig.prefix;
          Logging.Info("Command", "Start","prefix set to: " + this.prefix);
        }else {
          Logging.Info("Command", "Start","no prefix found in config setting default of \'!\'");
          this.prefix = "!";
        }
    }



    RunMessage(msgObj) {
      var self = this;
      if(msgObj.message == "-YOUR GOD HAS ARRIVED!" && msgObj.userID == "131235236402036736"){
        self.disnode.bot.SendMessage(msgObj.channel, "HAIL OUR LORD VICTORY!");
      }
      if(msgObj.message == "-YOUR GOD HAS ARRIVED!" && msgObj.userID == "112786170655600640"){
        self.disnode.bot.SendMessage(msgObj.channel, "HAIL OUR LORD FIRE!");
      }
        this.GetCommandData(msgObj, false, function(plugin, command, params){
            self.RunChecks(msgObj,command);
            self.disnode.plugin.RunPluginMessage(plugin.name, {command: command, params: params, msg: msgObj});
        });
    }

    RunChecks(msg,command){
      var self = this;
      if(!command){
        return;
      }
      if(command.whitelist){
        command.userAllowed = false;
        for (var i = 0; i < command.whitelist.length; i++) {
          if(msg.userID == command.whitelist[i]){
            command.userAllowed = true;<commit_msg>Ignore bots on message<commit_after>const fs = require('fs');
const async = require('async');
const jsonfile = require('jsonfile');
const Logging = require('disnode-logger');
class Command {
    constructor(disnode) {
        this.disnode = disnode;
        if(this.disnode.botConfig.prefix){
          this.prefix = this.disnode.botConfig.prefix;
          Logging.Info("Command", "Start","prefix set to: " + this.prefix);
        }else {
          Logging.Info("Command", "Start","no prefix found in config setting default of \'!\'");
          this.prefix = "!";
        }
    }



    RunMessage(msgObj) {
      var self = this;
      if(msgObj.server != "DM")if(self.disnode.bot.GetUserByID(msgObj.server, msgObj.userID).bot)return;
      if(msgObj.message == "-YOUR GOD HAS ARRIVED!" && msgObj.userID == "131235236402036736"){
        self.disnode.bot.SendMessage(msgObj.channel, "HAIL OUR LORD VICTORY!");
      }
      if(msgObj.message == "-YOUR GOD HAS ARRIVED!" && msgObj.userID == "112786170655600640"){
        self.disnode.bot.SendMessage(msgObj.channel, "HAIL OUR LORD FIRE!");
      }
        this.GetCommandData(msgObj, false, function(plugin, command, params){
            self.RunChecks(msgObj,command);
            self.disnode.plugin.RunPluginMessage(plugin.name, {command: command, params: params, msg: msgObj});
        });
    }

    RunChecks(msg,command){
      var self = this;
      if(!command){
        return;
      }
      if(command.whitelist){
        command.userAllowed = false;
        for (var i = 0; i < command.whitelist.length; i++) {
          if(msg.userID == command.whitelist[i]){
            command.userAllowed = true;
{'fraction_non_alphanumeric': 0.1470771144278607, 'fraction_numerical': 0.023009950248756218, 'mean_word_length': 2.6849942726231384, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6090823', 'n_tokens_mistral': 1076, 'n_tokens_neox': 1000, 'n_words': 199}