My twitterbot is named "the Meowing Bot".

Design:

Every two minutes, search with a random keyword from for 100 posts, randomly select one post from the result and get its user id. For each keyword, there is a array containing 10 corresponding emoji-s. For a post, post a string consisting of "@_userid _emoji + Meow~".

This bot can be extended. For example, if one cycle searched with keyword "sad", the bot can post to the user whose post was selected with a happy emoji.

Currently I don't know how to get the user id from one post of a tweeter object, so the tweet to certain user function is still not functioning.
/*Introduction*/
SM2289 WRITING DIGITAL MEDIA
ASSIGNMENT 5_B
21/10/2014
/*Source Code*/
import tweeter.*;

String ckey = "LIXQI4mJsf6kQJRE4gVn9A31L";
String csec = "OsaJYDQ6CHRhAii9U7d7RRro3rDhSoggX3gOPdttGkncZGiNMX";
String atok = "1412069461-0ZqN6MfkSyiIsUwbaPDA9OHy9VKVR70XBBk6hOX";
String asec = "rfVBHlF8nmcw9SNQg7JvqLASJ6o2f6oEvJTA58eTNKi3r";

Tweeter t1;
String[] crtid;
String[] query = new String[4];
String[] sad = new String[10];
String[] angry = new String[10];
String[] happy = new String[10];
String[] yeah = new String[10];
String userpostto;
String crtemoji;
String crtpost;
int crtusernumber;
int crt = 0;
int namelistlength = 0;
int crtuser = 0;

void setup()
{
size(800,600);
textSize(20);
t1 = new Tweeter(ckey,csec, atok,asec);
query[0] = "sad";
query[1] = "angry";
query[2] = "happy";
query[3] = "yeah";
sad[0] = "(´;ω;`)";
sad[1] = "。゚ヽ(゚´Д`)ノ゚。";
sad[2] = "(〒︿〒)";
sad[3] = "。・゚・(つд`゚)・゚・";
sad[4] = "(╥﹏╥)";
sad[5] = "QAQ";
sad[6] = "(ノД`)";
sad[7] = "(;д;)";
sad[8] = "(┬_┬)";
sad[9] = "ˇ︿ˇ";
angry[0] = "(╯°Д°)╯︵ ┻━┻";
angry[1] = "<ˋ0ˊ>";
angry[2] = "╰(‵□′)╯";
angry[3] = "(#`Д´)ノ";
angry[4] = "ヽ(#`Д´)ノ";
angry[5] = "(`へ´≠)";
angry[6] = "-^-";
angry[7] = ">︿<";
angry[8] = "(`皿´)";
angry[9] = "(#゚Д゚)";
happy[0] = "(*´▽`*)";
happy[1] = "ヽ(●´∀`●)ノ";
happy[2] = "d(`・∀・)b";
happy[3] = " (•‾⌣‾•)";
happy[4] = "\\\٩( 'ω' )و ////";
happy[5] = "(๑ • ‿ • ๑ )";
happy[6] = "(*´∀`)~♥";
happy[7] = "(σ′▽‵)′▽‵)σ";
happy[8] = "(๑´ㅂ`๑)";
happy[9] = "( ゚∀゚)o彡゚";
yeah[0] = "(✪ω✪)";
yeah[1] = "=└(┐卍^o^)卍";
yeah[2] = "♥(´∀` )人";
yeah[3] = "(^ρ^)/";
yeah[4] = "ε(*´・∀・`)з゙";
yeah[5] = "(((o(*゚▽゚*)o)))";
yeah[6] = "(*´ω`)人(´ω`*)";
yeah[7] = "(●ゝω)ノヽ(∀<●)";
yeah[8] = "v(*´∀`*)v";
yeah[9] = "ヾ(≧O≦)〃";
}

void draw()
{
crt = floor(random(1,5));
t1.search(query[crt],100);
crtusernumber = floor(random(1,100));
//userpostto = "@" + ids[crtusernumber];
switch (crt)
{
case 1:
crtemoji = sad[floor(random(0,10))];
break;
case 2:
crtemoji = angry[floor(random(0,10))];
break;
case 3:
crtemoji = happy[floor(random(0,10))];
break;
case 4:
crtemoji = yeah[floor(random(0,10))];
break;
}
crtpost = crtemoji + " " + "Meow~"; //userpostto + crtemoji + "Meow~"
t1.post(crtpost);
delay(120000);
}
TWITTERBOT
/*Screenshot*/