Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how do i use the advance event on plug dj when i us eit it wont run

What I have tried:

JavaScript
bot.on(bot.ADVANCE, function(data) {
	bot.sendChat('list updated');
var media = bot.getMedia();

	
	if(media.duration > 1){
		bot.sendChat('song too long');
		
		return bot.moderateForceSkip();
	};
	
});
Posted
Updated 12-Apr-17 1:18am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900