SHOW:
|
|
- or go back to the newest paste.
1 | - | // Made because @Nantes was using an anti-afk bot for people in the DJ queue. If you use this script, you will likely be banned. I mean... it says the same things over and over. They will catch on quickly. If you want, change the responses or add more. |
1 | + | //If you use this script, you will likely be banned. I mean (it says the same things over and over. They will catch on quickly) |
2 | - | // Updated for the new winter layout (Switch from Models.*.* to API.*) |
2 | + | //paste this into console on plug.dj now! (i like using it on tastycat xD) |
3 | ||
4 | var waitBase = 3600; // DEFAULT: 3600s (1 hour) | |
5 | var waitVar = 1800; // DEFAULT: 1800 (0.5 hour) | |
6 | ||
7 | var responses = ["nice song", "I love this song!", "woo!", ":D", ":)", "NIIICE", "love this", "this is very good", "I'm gonna save this for later", "beautiful!"]; | |
8 | ||
9 | function speak() | |
10 | { | |
11 | var message = ""; | |
12 | if(getRandom(0, 100) >= 50) | |
13 | { | |
14 | message = "@" + API.getDJs()[0].username + " "; | |
15 | } | |
16 | message += responses[getRandom(0, responses.length)]; | |
17 | API.sendChat(message); | |
18 | setTimeout(function(){speak();}, (waitBase + getRandom(0, waitVar))*1000); | |
19 | } | |
20 | ||
21 | function getRandom(min, max) | |
22 | { | |
23 | return Math.floor(Math.random()*max + min); | |
24 | } |