Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Tagpro Group Testing
  3. // @include      http://*.koalabeast.com/groups/*
  4. // @author       ballparts
  5. // @version      0.1
  6. // ==/UserScript==
  7.  
  8. function wait(fn) {
  9.     if(!tagpro) {
  10.         setTimeout(wait(fn), 10);
  11.         console.log('waiting');
  12.     } else {
  13.         fn();
  14.         console.log('started');
  15.     }
  16. }
  17.  
  18. function doIt() {
  19.     tagpro.ready(function(){
  20.         tagpro.group.socket.on('you', p => console.log(`User ID: ${p}`));
  21.     });
  22. }
  23.  
  24. wait(doIt);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement