This is an example of slash commands for discord, written entirely in Java using Gradle as the library manager.
- JDA 5 (Java Discord API)
- Logback Classic
The objective of this bot is just to clarify a little the doubts or even if you are new in this development of bots, you have where to take references
Of course! The only thing you need to do is clone the repository to a local repository.
$ git clone https://github.com/wolfdev1/DiscordBotTemplate
The only thing you need is to go to the main package and enter the Config.java file and modify the GUILD_ID and the BOT_TOKEN, then they should only start the Bot.java class
public class Config {
public static String GUILD_ID = "Here your Guild Id";
public static String BOT_TOKEN = "Here your token";
}
In the computer client, on the icon of your server in the sidebar you will right click and copy id