taraz Posted February 16, 2018 Share Posted February 16, 2018 5 minutes ago, sirskitzo said: @taraz Yeah, obvious I understand this array but I mean I don't understand the code itself :P i understand i did only post half off the code Link to comment Share on other sites More sharing options...
sirskitzo Posted February 16, 2018 Author Share Posted February 16, 2018 @taraz Ahh alright thanks Link to comment Share on other sites More sharing options...
taraz Posted February 16, 2018 Share Posted February 16, 2018 14 minutes ago, sirskitzo said: @taraz Ahh alright thanks Hope you script anything like this :P will make it fun :P Link to comment Share on other sites More sharing options...
nano mano Posted February 21, 2018 Share Posted February 21, 2018 Filter text and check if a message contains your name. Link to comment Share on other sites More sharing options...
I am not a Posted March 31, 2018 Share Posted March 31, 2018 (edited) On 2/15/2018 at 12:11 PM, Juggles said: Bots aren't human, they can't know if "what ya doing" and "what r u doing?" are the same thing. You have to program both of them so it knows Wrong. If (message.contains("what") || message.contains("wat")) { phraseCount++; } if (message.contains(" r ") || message.contains(" are ")) { phraseCount++; } if (message.contains(" you ") || message.contains(" ya ") || message.contains(" u ")) { phraseCount++; } if (message.contains(" doin") {//lack of space after would also cover "doing" phraseCount++; } if (phraseCount >= 3) {//incase they just say "wat u doin" //ACTION HERE } Obviously there's a billion ways better to carry this function out but i'd thought to keep it simple to explain the point i guess. Edited March 31, 2018 by I am not a 1 Link to comment Share on other sites More sharing options...