Skip to content

Commit

Permalink
registered wrong events instance
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim19375 committed May 16, 2021
1 parent 8e4fe2d commit 0490620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding 'UTF-8'

group 'me.dkim19375'
version '2.2.1'
version '2.2.2'

//noinspection GrUnresolvedAccess
compileKotlin.kotlinOptions.jvmTarget = '1.8'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/dkim19375/dkim19375jdautils/BotBase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ abstract class BotBase {
val jda = builder.build()
this.jda = jda
jda.addEventListener(EventListener(this))
jda.addEventListener(SpecialEventsManager(this))
jda.addEventListener(eventsManager)
Runtime.getRuntime().addShutdownHook(thread(false) {
if (jda.status != JDA.Status.SHUTDOWN && jda.status != JDA.Status.SHUTTING_DOWN) {
println("Stopping the bot!")
Expand Down

0 comments on commit 0490620

Please sign in to comment.