viewing paste Unknown #26559 | Javascript

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
for(i=0;i<load.botCommands.length;i++) { 
    if(message.toLowerCase() === "!"+load.botCommands[i].command){
        if(load.botCommands[i].mod) {
            if(!(user["user-type"] === "mod" && user.username === channel.replace("#", ""))) {
                break;
            }
        }
        if(load.botCommands[i].me) {
            if(user['display-name'] != "TheDerpySupport"){
                break;
            }
        }
        if(load.botCommands[i].whisper) {
            client.whisper(user['display-name'], load.botCommands[i].description);
        } else {
            client.say(channel, load.botCommands[i].description);
        }
    }
}
Viewed 951 times, submitted by Guest.