Advertisement
Guest User

Untitled

a guest
May 26th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. do {
  2. if (data[bigram_index] !== undefined) {
  3. my_word = my_word.charAt(0).toUpperCase() + my_word.slice(1);
  4. var gram1 = data[bigram_index].gram1.charAt(0).toUpperCase() + data[bigram_index].gram1.slice(1);
  5. var gram2 = data[bigram_index].gram2;
  6. final_tweet = "Knock knock!\nWho's there?\n" + my_word + "!\n" + my_word + " who?\n" + gram1 + " " + gram2 + "!";
  7.  
  8. if (!wordfilter.blacklisted(final_tweet)) post_tweet();
  9. else final_tweet = "";
  10. break;
  11. }
  12. } while (bigram_index --> 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement