(Note: You should have Java already running on your machine)
-
Create a new Discord application [[https://discord.com/developers/applications]]
-
In General Information, look for the Application ID and click copy.
-
In the following link, replace
YOUR_APPLICATION_IDwith the application ID of your bot. Then open the link and add it to your server.
https://discord.com/oauth2/authorize?client_id=YOUR_APPLICATION_ID&permissions=8&integration_type=0&scope=bot+applications.commands
-
Generate a Discord bot token on the Bot page, by clicking Reset Token.
-
Create a file called
discord.secretin the root directory (sibling to this README.md file), and paste that token there. -
Run
chmox +x gradlewto make gradlew executable (macOS/linux) -
You should be able to run
./gradlew runin a terminal inside the root directory of this project. -
After the bot loads into your server, force quit and reopen discord to make sure the slash commands load.
-
You should be able to use the bot's slash commands.
/
/app/src/main/java/discord/bot
/commands
Contains all command files, which are triggered
to handle bot interaction events
/data
Contains DataStore, which manages all data,
as well as multiple DataClasses,
which can be saved to the database.
DataStore.Java
DataClass.Java
(Data stored with Discord IDs)
UserData.java
MessageData.java
(Custom data)
Flashcard.java
FlashcardDeck.java
StudySession.java
/managers
BaseManager.java
SlashCommandManager.java
App.java — Entrypoint
data.json — Automatically created by DataStore
discord.token — Manually created (contains Bot token)