Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bot.on("ready", async music => {
  2.   console.log("Sexy Fornite Box is Booted ;)")
  3.   function play(songID){
  4.     let VC = bot.channels.get("535172887737401350");
  5.     VC.join()
  6.       .then(connection => {
  7.         const dispatcher = connection.playFile(`./audio/music`+ songID +`.mp3`);
  8.         function countdowncd(){
  9.           const dispatcher = connection.playFile(`./audio/cd.mp3`);
  10.           console.log("Timer past")
  11.         };
  12.         dispatcher.on("end", end => {
  13.           play(randint(66))
  14.         });
  15.       })
  16.       .catch(console.error)
  17.   };
  18.   play(randint(66))
  19.   function execute(){
  20.     var date = new Date()
  21.     if(date.getMinutes() == 55 && date.getSeconds() == 30){
  22.       countdowncd()
  23.     };
  24.   };
  25.   function run() {
  26.     setInterval(execute, 100);
  27.   };
  28.   run()
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement