Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot.on("ready", async music => {
- console.log("Sexy Fornite Box is Booted ;)")
- function play(songID){
- let VC = bot.channels.get("535172887737401350");
- VC.join()
- .then(connection => {
- const dispatcher = connection.playFile(`./audio/music`+ songID +`.mp3`);
- function countdowncd(){
- const dispatcher = connection.playFile(`./audio/cd.mp3`);
- console.log("Timer past")
- };
- dispatcher.on("end", end => {
- play(randint(66))
- });
- })
- .catch(console.error)
- };
- play(randint(66))
- function execute(){
- var date = new Date()
- if(date.getMinutes() == 55 && date.getSeconds() == 30){
- countdowncd()
- };
- };
- function run() {
- setInterval(execute, 100);
- };
- run()
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement