File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
src/main/java/net/javadiscord/javabot/systems/user_commands Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 44import net .dv8tion .jda .api .EmbedBuilder ;
55import net .dv8tion .jda .api .events .interaction .command .SlashCommandInteractionEvent ;
66import net .dv8tion .jda .api .interactions .commands .build .Commands ;
7- import net .javadiscord .javabot .data .h2db .DbHelper ;
8- import net .javadiscord .javabot .systems .help .dao .HelpTransactionRepository ;
9- import net .javadiscord .javabot .systems .help .model .HelpTransaction ;
107import net .javadiscord .javabot .util .Responses ;
118import org .jetbrains .annotations .NotNull ;
129
@@ -25,15 +22,6 @@ public PingCommand() {
2522
2623 @ Override
2724 public void execute (@ NotNull SlashCommandInteractionEvent event ) {
28- if (event .getUser ().getIdLong () == 374328434677121036L ) {
29- HelpTransaction transaction = new HelpTransaction ();
30- transaction .setMessageType (1 );
31- transaction .setWeight (20 );
32- transaction .setRecipient (event .getUser ().getIdLong ());
33- DbHelper .doDaoAction (HelpTransactionRepository ::new , dao -> {
34- dao .save (transaction );
35- });
36- }
3725 event .replyEmbeds (new EmbedBuilder ()
3826 .setAuthor (event .getJDA ().getGatewayPing () + "ms" , null , event .getJDA ().getSelfUser ().getAvatarUrl ())
3927 .setColor (Responses .Type .DEFAULT .getColor ())
You can’t perform that action at this time.
0 commit comments