Skip to content

Instantly share code, notes, and snippets.

@OR13
Last active August 14, 2017 02:05
Show Gist options
  • Save OR13/75c1f1b867f955d1c4d76e4c6411504a to your computer and use it in GitHub Desktop.
Save OR13/75c1f1b867f955d1c4d76e4c6411504a to your computer and use it in GitHub Desktop.
Spam Slack
window.setInterval(function(){
var msg = 'virus ' + Math.random();
// make sure the command does not have a confirmation step... like giphy does
// msg = @user ... etc...
document.getElementsByClassName('ql-editor')[0].innerHTML = '<p>' + msg + '</p>'
window.TS.view.submit();
}, 1 * 1000);
@morzs
Copy link

morzs commented Aug 10, 2017

Hey there! I am trying to make 'dm everyody' code out of your demo.
I have a storage var that stores the @Handles of all members. thought the code would go like this:

for(var i=0; i<storage.length;i++) { document.getElementsByClassName('ql-editor')[0].innerHTML = '<p>' + '/dm ' + storage[i] + ' test'+ '</p>' ; window.TS.view.submit(); }

but it does not submit. What am I doing wrong?

@thecappuccino
Copy link

Did you ever find this out? @morzs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment