Skip to content

Instantly share code, notes, and snippets.

@AUmrysh
Last active October 29, 2015 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AUmrysh/2b8038adb6ecd4c920dd to your computer and use it in GitHub Desktop.
Save AUmrysh/2b8038adb6ecd4c920dd to your computer and use it in GitHub Desktop.
ts = "YOU GOTTA GET YOUR OWN TS TO GO HERE BRUH";
token = "ALSO GET YOUR OWN TOKEN BRUH";
channel = "C06EX7SPR";
count = 0;
window.intv = setInterval(function(){
if (count == 0) {
s = "blinky text";
}
else {
s = " ";
}
$.ajax(
{
url: " https://charlestontechslack.slack.com/api/chat.update?t="+(Date.now()/1000).toPrecision(10),
method: "POST",
data: {channel: channel, ts: ts, _attempts: 1, _delay_ms: 100, token: token, text: s}
}
);
count = (count + 1) % 2;
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment