Last active
October 29, 2015 19:46
-
-
Save AUmrysh/2b8038adb6ecd4c920dd 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
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