File tree Expand file tree Collapse file tree
src/main/java/org/mangorage/mangobotplugin/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ dependencies {
7777 bootstrap(" org.mangorage:mangobotbootstrap:1.0.84" )
7878 launchtarget(" org.mangorage:mangobotlaunchtarget:0.1.8" )
7979
80- plugin(' org.mangorage:mangobot:12.0.94 ' )
80+ plugin(' org.mangorage:mangobot:12.0.96 ' )
8181
8282 library(' org.slf4j:slf4j-simple:2.0.13' ) // Use a recent version)
8383 library(' org.luaj:luaj-jme:3.0.1' )
Original file line number Diff line number Diff line change 11package org .mangorage .mangobotplugin .commands ;
22
33import net .dv8tion .jda .api .entities .Message ;
4+ import org .mangorage .mangobotcore .api .command .v1 .CommandParseResult ;
45import org .mangorage .mangobotcore .api .jda .command .v2 .AbstractJDACommand ;
56import org .mangorage .mangobotcore .api .jda .command .v2 .JDACommandResult ;
67
@@ -11,7 +12,7 @@ public PingCommand(String name) {
1112 }
1213
1314 @ Override
14- public JDACommandResult run (Message message , String [] arguments ) {
15+ public JDACommandResult run (Message message , String [] arguments , CommandParseResult commandParseResult ) {
1516 message .reply ("Pong!" ).queue ();
1617 return JDACommandResult .PASS ;
1718 }
Original file line number Diff line number Diff line change 44import net .dv8tion .jda .api .entities .Message ;
55import net .dv8tion .jda .api .entities .MessageEmbed ;
66
7+ import org .mangorage .mangobotcore .api .command .v1 .CommandParseResult ;
78import org .mangorage .mangobotcore .api .jda .command .v2 .AbstractJDACommand ;
89import org .mangorage .mangobotcore .api .jda .command .v2 .JDACommandResult ;
910import java .awt .*;
@@ -26,7 +27,7 @@ public PingsCommand(String name) {
2627 }
2728
2829 @ Override
29- public JDACommandResult run (Message message , String [] arguments ) {
30+ public JDACommandResult run (Message message , String [] arguments , CommandParseResult commandParseResult ) {
3031 var referenced = message .getReferencedMessage ();
3132 if (referenced == null ) {
3233 message .getChannel ().sendMessageEmbeds (EMBED ).queue ();
You can’t perform that action at this time.
0 commit comments