A set of tools for the JDA library
The current latest version is:
Usage instructions can be found here with some examples in the tests folder
A shutdown method was created in the BotCommons
class.
This method also accepts your JDA or ShardManager instance for killing the threads that OkHttp created, because of these running threads your bot will not shut down.
repositories {
maven {
name 'm2-duncte123'
url 'https://m2.duncte123.dev/releases'
}
}
dependencies {
implementation group: 'me.duncte123', name: 'botCommons', version: '[VERSION]'
}
<repository>
<id>m2-duncte123</id>
<name>m2-duncte123</name>
<url>https://m2.duncte123.dev/releases</url>
</repository>
<dependency>
<groupId>me.duncte123</groupId>
<artifactId>botCommons</artifactId>
<version>[VERSION]</version>
</dependency>
Make sure to replace [VERSION]
with the version listed above.