Andrej Akan: Difference between revisions

import>Grandmastervikramrahul
No edit summary
import>Lumpy HTF
No edit summary
Line 33: Line 33:


J@N|_|S CYB3RCR|M3 S0|_|_|T|0NS |S B33T3R TH@N (im not typing like that anymore) the solution to stop global warming!
J@N|_|S CYB3RCR|M3 S0|_|_|T|0NS |S B33T3R TH@N (im not typing like that anymore) the solution to stop global warming!
I LOVE BOTTING A SEMI-JOKE BOT CALLED "Fact Teller -help", BY SPAMMING COMMANDS TO IT BY BOTTING THE VM, AND SETTING THE SPAM MESSAGE TO THE CORRESPONDING COMMAND I WANT TO SPAM! DUE TO THE WAY THE BOT SENDS MESSAGES (IN A WAY TO PREVENT IT FROM GETTING MUTED), WHILE ALL FUTURE COMMANDS WILL BE PROCESSED SUCCESSFULLY, THOSE COMMANDS WON'T GET IT'S RESULT SENT IN THE CHAT UNTIL MUCH LATER, DUE TO IT BEING BUSY WITH THE OLD COMMANDS!
<pre>
// how the bot sends code in question
setInterval(() => {
    if (msgarray.length > 0) {
        if (!authsuccess && msgsend > maxmsgpersec[0]) {
            return;
        }
        CVMConnection.send(encode(['chat', msgarray[0]])); // send message
        msgarray.shift(); // remove sent message
        msgsend++;
    }
}, maxmsgpersec[1] / maxmsgpersec[0] * 1000);
setInterval(() => { // clear sent messages interval when safe
    msgsend = 0;
}, maxmsgpersec[1] * 1000);
function sendMsg(msg) { // chat tunnel
    if (fs.readFileSync('BotJammer.txt', 'utf8').split(': ')[1].toLowerCase().split(', ')[0] == 'activated') {
        msgarray.length = 0;
        return;
    }
    msgarray.push(msg);
}
</pre>


i have more than u!
i have more than u!