Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do {
- if (data[bigram_index] !== undefined) {
- my_word = my_word.charAt(0).toUpperCase() + my_word.slice(1);
- var gram1 = data[bigram_index].gram1.charAt(0).toUpperCase() + data[bigram_index].gram1.slice(1);
- var gram2 = data[bigram_index].gram2;
- final_tweet = "Knock knock!\nWho's there?\n" + my_word + "!\n" + my_word + " who?\n" + gram1 + " " + gram2 + "!";
- if (!wordfilter.blacklisted(final_tweet)) post_tweet();
- else final_tweet = "";
- break;
- }
- } while (bigram_index --> 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement