var FEED_MSG_ADD = "Made a Friend";
var FEED_MSG_LOST = "Lost a Friend";
var FEED_MSG_MORE = "Best Friends";
var FEED_MSG_BAD = "Made an Enemy";

msgs = {};
msgs[FEED_MSG_ADD] = [
        "Great meeting you at the Global Game Jam! Hope to see you again soon!",
        "Habibi - now we are friends.",
        "We are friends now, you will have to deal with the consequences.",
        "We have to get back in contact!"
    ];

msgs[FEED_MSG_LOST] = [
    "Friend-list cleaning time!!!",
    ":O! I was unfriended! guess we aren't friends anymore...",
    "Take a walk!",
    "My friend list is too long",
    "I already have a friend with your name so..."
];

msgs[FEED_MSG_MORE] = [
    "Last night was increadible! Best friends foreverrrrrr!",
    "I saw your instergram photo - we are now best friends",
    "Be my valantine"
];

msgs[FEED_MSG_BAD] = [
    "You drank my Chocho! This is it! we are done!",
    "Shut your mouth, choke on your food and die!",
    "I've always hated you",
    "This internet is not big enough for the both of us",
    "I've always hated Adib's music! It's very bad.",
    "The artichoke has RISEN!!!"
];

function randomChoice(array)
{
    return array[Math.round(Math.random() * (array.length - 1))]
}

function getFeedEvent()
{
    var type = randomChoice([FEED_MSG_ADD, FEED_MSG_ADD, FEED_MSG_ADD, FEED_MSG_LOST, FEED_MSG_MORE, FEED_MSG_BAD]);

    return {
        type: type,
        msg: randomChoice(msgs[type])
    }
}