You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
package musicbot; |
|
|
|
import musicbot.buttonInteractions.MoreRecommendation; |
|
import musicbot.commands.Artist; |
|
import musicbot.commands.Genres; |
|
import musicbot.commands.MusicVideo; |
|
import musicbot.commands.Recommend; |
|
import net.dv8tion.jda.api.JDA; |
|
import net.dv8tion.jda.api.JDABuilder; |
|
public class Main { |
|
public static void main(final String[] args) { |
|
final JDA jda = JDABuilder |
|
.createDefault(Token.TOKEN) |
|
.build(); |
|
final CommandManager commandManager = new CommandManager(); |
|
final ButtonInteractionManager buttonInteractionManager = new ButtonInteractionManager(); |
|
|
|
// commands |
|
commandManager.add(new Artist()); |
|
commandManager.add(new Genres()); |
|
commandManager.add(new MusicVideo()); |
|
commandManager.add(new Recommend()); |
|
|
|
// button interactions |
|
buttonInteractionManager.add(new MoreRecommendation()); |
|
|
|
// add the managers |
|
jda.addEventListener(commandManager); |
|
jda.addEventListener(buttonInteractionManager); |
|
jda.addEventListener(new Listeners()); |
|
} |
|
}
|
|
|