Created
July 5, 2020 07:27
-
-
Save eyes-0nly/e8153a69cff7473ad793c7bef6366d52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const friends = ['eyes_only', 'akatsuki_A']; //впиши ники тех кого хочешь слушать | |
volume = 10; //установи оптимальную для себя громкость | |
API.on(API.ADVANCE, () => { | |
let dj = API.getDJ(); | |
if (friends.includes(dj.username)) { | |
API.setVolume(volume); | |
console.log(`Играет ваш друг ${dj.username}.`); | |
} else { | |
API.setVolume(0); | |
console.log('Звук выключен.'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment