Last active
January 17, 2016 00:47
-
-
Save yadomi/9195e7d8aa6b9d3ecec1 to your computer and use it in GitHub Desktop.
Randomly send an emoji every .5s
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
//Insert any smiley you want here | |
var emoji = [":bowtie:", ":smile:", ":laughing:", ":blush:", ":smiley:"] | |
var interval = setInterval(function(){ | |
var em = emoji[Math.floor(Math.random()*emoji.length)]; | |
$('#message-input').val(em); | |
$('#message-form').submit(); | |
}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment