package kr.co.swh.lecture.opensource.project.discode.music;

import javax.security.auth.login.LoginException;

import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;


public class YoutubeMusicBot {
	
	public void play() throws LoginException, InterruptedException {
		// Note: It is important to register your ReadyListener before building
        JDA jda = JDABuilder.createDefault("NjYzMjgzODYxMTUyNTk1OTkz.XhGROw.Ps3JJIKlEXoE1eah_5OKHwViThY")
            .addEventListeners(new YoutubeMusicListener())
            .build();

        // optionally block until JDA is ready
        jda.awaitReady();
	}
	public static void main(String[] args) throws LoginException, InterruptedException {
		// TODO Auto-generated method stub
		YoutubeMusicBot bot = new YoutubeMusicBot();
		bot.play();
	}
	
	 public void shutdown()
	 {
		 System.exit(0);
	 }
}
