Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.           //NOTE: Get Supporter (Array)
  2.           function getSupporter() {
  3.  
  4.               var supporter = [];
  5.               var i = 0;
  6.               backend.getClients().forEach(function(client) {
  7.                       client.getServerGroups().forEach(function(group) {
  8.                           client.getChannels().forEach(function(ch) {
  9.                               spg.spSupporterId.forEach(function(group2) {
  10.  
  11.                                   if (group.id() == group2) {
  12.  
  13.                                       //NOTE: AFK Channel new (v2)
  14.                                       if (ch.id() == spc.spAfkChannel.id()) {
  15.                                           engine.log('#fix - 22');
  16.                                       } else {
  17.  
  18.  
  19.                                           i = i + 1;
  20.  
  21.                                           supporter[i] = client.id();
  22.                                       }
  23.                                   }
  24.                               });
  25.                           });
  26.                       });
  27.                   )};
  28.               return supporter;
  29.           }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement