Skip to content

Commit 0f874f7

Browse files
committed
Updated to newest MangoBotCore
1 parent 6cc9863 commit 0f874f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ dependencies {
7272
testImplementation 'org.junit.jupiter:junit-jupiter'
7373

7474
installer('org.mangorage:installer:4.0.3')
75-
bot('org.mangorage:mangobot:12.0.7')
75+
bot('org.mangorage:mangobot:12.0.9')
7676

7777
library('org.luaj:luaj-jse:3.0.1')
7878
}

src/main/java/org/mangorage/mangobotplugin/BotEventListener.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
66
import net.dv8tion.jda.api.hooks.SubscribeEvent;
77
import org.mangorage.mangobotcore.jda.event.DiscordButtonInteractEvent;
8+
import org.mangorage.mangobotcore.jda.event.DiscordMessageReceivedEvent;
89
import org.mangorage.mangobotcore.jda.event.DiscordModalInteractionEvent;
910
import org.mangorage.mangobotplugin.entrypoint.MangoBot;
1011

@@ -29,6 +30,7 @@ public void onModalInteract(ButtonInteractionEvent event) {
2930

3031
@SubscribeEvent
3132
public void onMessageReceived(MessageReceivedEvent event) {
33+
DiscordMessageReceivedEvent.BUS.post(new DiscordMessageReceivedEvent(event));
3234
mangoBot.getCommandManager().handle(event.getMessage());
3335
}
3436
}

0 commit comments

Comments
 (0)