View difference between Paste ID: PhRwM33C and gHCRg0gm
SHOW: | | - or go back to the newest paste.
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-
		client.network().sendChanMessage(channel, teststring); //teststring is empty here for some reason
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
}