Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- API.addEventListener(API.DJ_UPDATE, pointcheck);
- function pointcheck(user) {
- var userlist=API.getUsers();
- length=userlist.length;
- for(var i=0; i<length;i++) {
- if(userlist[i].fans == 100) {
- API.sendChat("Grats on 100 fans, "); //not sure how to get userid here
- }
- }
- for(var i=0; i<length;i++) {
- if((userlist[i].curatorPoints+userlist[i].listenerPoints+userlist[i].djPoints) == 10000) {
- API.sendChat("Grats on 10000 points, "); //not sure how to get userid here
- }
- if((userlist[i].curatorPoints+userlist[i].listenerPoints+userlist[i].djPoints) == 5000) {
- API.sendChat("Grats on 5000 points, ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment