Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //start of your code
- var teststringsave = "";
- //rest of your code until this part
- if (vChannelCatch == client.channelId("Skynet Logging")){
- var teststring = "";
- if ([vMyName].indexOf(vUserSent) !== -1){
- vtesting = vMessageCatchUp.substr(0, vMessageCatchUp.indexOf("*"));
- teststring = vMessageCatchUp.substr(vMessageCatchUp.indexOf("*") + 1);
- if (vtesting == "?command"){
- client.network().sendChanMessage(channel, "Hello World " + teststring);
- testbool = true;
- }
- }
- //DEBUGGING
- if (vMessageCatch == "print string"){
- client.network().sendChanMessage(channel, teststringsave); // posts previous teststring
- vAutoRespond = false; //Threw this in cos it kept looping lmao
- }
- //DEBUGGING SECTION END
- if ([teststring].indexOf(vUserSent) !== -1){ //FAILS COS TESTSTRING IS EMPTY
- if (testbool == true){
- client.network().sendPM(client.id(teststring), "testing");
- }
- }
- teststringsave = teststring;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement