Getting Started
Before getting started, please ensure you have the following installed:
Java Development Kit (version 13 or later)
For New Projects
If you're starting a new project, we highly recommend that you use the template project.
If you have a GitHub account, you can click the "Use this template" button to quickly create a new repository using the contents of the template project. This will get you started quickly, with a basic bot provided for you to play with.
Alternatively, you can clone or download the repository and push it up to any repository host with your tooling of choice.
For Existing Projects
First, add the required Maven repos to your settings.gradle.kts
.
Next, add the KordEx Gradle plugin to your settings.gradle.kts
or build.gradle.kts
.
Then, configure it as needed. At minimum, you should specify your bot's main class, via the mainClass
property in the bot
builder. You may also wish to configure the Data Collection level.
For more information on the Gradle plugin, what it does and how to configure it, please see the KordEx plugin documentation.