Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //start of your code
  2. var teststringsave = "";
  3.  
  4. //rest of your code until this part
  5.  
  6. if (vChannelCatch == client.channelId("Skynet Logging")){
  7.     var teststring = "";
  8.     if ([vMyName].indexOf(vUserSent) !== -1){
  9.         vtesting = vMessageCatchUp.substr(0, vMessageCatchUp.indexOf("*"));
  10.         teststring = vMessageCatchUp.substr(vMessageCatchUp.indexOf("*") + 1);
  11.  
  12.         if (vtesting == "?command"){
  13.             client.network().sendChanMessage(channel, "Hello World " + teststring);
  14.             testbool = true;
  15.         }
  16.     }
  17.    
  18.         //DEBUGGING
  19.     if (vMessageCatch == "print string"){
  20.         client.network().sendChanMessage(channel, teststringsave); // posts previous teststring
  21.         vAutoRespond = false; //Threw this in cos it kept looping lmao
  22.     }
  23.     //DEBUGGING SECTION END
  24.  
  25.     if ([teststring].indexOf(vUserSent) !== -1){ //FAILS COS TESTSTRING IS EMPTY
  26.         if (testbool == true){
  27.             client.network().sendPM(client.id(teststring), "testing");
  28.         }  
  29.     }
  30.     teststringsave = teststring;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement