diff --git a/README.md b/README.md
index 10aa463..48ea7ff 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,7 @@ THE API IS STILL VERY NEW, RESULTING IN FREQUENT CHANGES**
work, please notify me!**
## Adding the dependency
+Gradle:
```groovy
repositories {
maven { url = 'https://jitpack.io' }
@@ -18,7 +19,19 @@ dependencies {
implementation 'com.github.dkim19375:dkim19375JDAUtils:VERSION'
}
```
-
+Maven:
+```xml
+
+ jitpack
+ jitpack
+ https://jitpack.io/
+
+
+ com.github.dkim19375
+ dkim19375JDAUtils
+ VERSION
+
+```
## Setting up the bot
A class, that holds information such as the commands, needs to be
created. It extends `me.dkim19375.dkim19375JDAUtils.BotBase`.
diff --git a/src/main/kotlin/me/dkim19375/dkim19375jdautils/BotBase.kt b/src/main/kotlin/me/dkim19375/dkim19375jdautils/BotBase.kt
index ba98e46..1a2e8f3 100644
--- a/src/main/kotlin/me/dkim19375/dkim19375jdautils/BotBase.kt
+++ b/src/main/kotlin/me/dkim19375/dkim19375jdautils/BotBase.kt
@@ -1,5 +1,6 @@
package me.dkim19375.dkim19375jdautils
+import dev.minn.jda.ktx.injectKTX
import me.dkim19375.dkim19375jdautils.annotation.API
import me.dkim19375.dkim19375jdautils.command.Command
import me.dkim19375.dkim19375jdautils.command.HelpCommand
@@ -24,6 +25,7 @@ import kotlin.system.exitProcess
abstract class BotBase {
abstract val name: String
abstract val token: String
+ open val injectKTS = false
open val customListener: CustomListener = object : CustomListener() {}
open val intents = mutableSetOf(GatewayIntent.GUILD_MESSAGE_REACTIONS, GatewayIntent.DIRECT_MESSAGE_REACTIONS)
@@ -61,6 +63,9 @@ abstract class BotBase {
started = true
println("Starting bot")
val builder = JDABuilder.createDefault(token)
+ if (injectKTS) {
+ builder.injectKTX()
+ }
builder.enableIntents(intents)
val jda = builder.build()
this.jda = jda