Created
October 30, 2014 20:44
-
-
Save luqmaan/a77d0be6fed9d7b260e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nextInterval = 5000; | |
setInterval(function() { | |
var _ = '=', | |
s = '~', | |
_i = Math.random() * 30 + 10, | |
_s = Math.random() * 30; | |
while (_.length < _i) _ += _; | |
while (s.length < _s) s += s; | |
var msg = '(heart)' + _ + 'D' + s; | |
$("#message_input").val(msg); | |
chat.send_message(); | |
nextInterval = 20000 + Math.random() * 30000; | |
}, nextInterval); | |
function animatedGif() { | |
var reset = 5; | |
function getRandomIcon() { | |
var icons = ['(drmaples)', '(sang)', '(ataleoftwocities)', '(birchinzo)', '(suckmyshit)', '(kewl)', '(ineverseendatdoe)', '(yardbird)', '(luqmonster)', '(matto)', '(oface)', '(noice)', '(shipit)', '(wefwef)', '(pythong)', '(ctfo)', '(diosmio)', '(theyellowking)', '(naruby)', '(sunsout)', '(weatherman)', '(dandalion)', '(doh)', '(keepshitweird)', '(keepaustinweird)', '(science)', '(grassyass)', '(gracias)', '(vamanos)', '(dintymoore)', '(chefschoice)', '(jefeschoice)', '(vamonos)', '(bigcommerce)', '(standyourground)', '(harass)', '(hairyass)', '(hareass)', '(hairass)', '(herass)', '(heiress)', '(heirass)', '(whatcanbrowndoforu)', '(themoreyouknow)', '(shitstation)', '(shipstation)', '(sexy)', '(luvmaan)', '(thecoon)', '(racoon)', '(raccoon)', '(coon)', '(corn)', '(themooreyouknow)', '(goat)', '(dontforgetto)', '(bringatowel)', '(towelie)', '(towel)', '(smartcookie)', '(ordoro)', '(royale)', '(noneedtobeupset)', '(needtobeupset)', '(apple)', '(wutangis4thechildren)', '(pbj)', '(upsetluqmonster)', '(sadluqmonster)', '(rustledluqmonster)', '(beautifulluqmonster)', '(hangry)'] | |
var index = Math.floor(Math.random() * icons.length); | |
var icon = icons[index]; | |
return icon; | |
} | |
function sendMessage(msg) { | |
$("#message_input").val(msg); | |
chat.send_message(); | |
} | |
var nextInterval = 900; | |
var lastIcon; | |
function resetMessage() { | |
lastIcon = getRandomIcon(); | |
sendMessage(lastIcon) | |
} | |
setInterval(function() { | |
if (nextInterval === (1000 * 3)) { | |
nextInterval = 900; | |
} | |
var msg = 's/' + lastIcon + '/'; | |
lastIcon = getRandomIcon(); | |
msg += lastIcon; | |
console.log(msg) | |
sendMessage(msg); | |
reset -= 1; | |
if (reset === 0) { | |
resetMessage() | |
reset = 5; | |
nextInterval = 1000 * 3; | |
} | |
}, nextInterval); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment