Skip to content

Commit

Permalink
Manager Export
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaxium69 committed Jul 25, 2021
1 parent 46dacc7 commit cea1cec
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 14 deletions.
Binary file modified TyroBot/.gradle/6.7/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified TyroBot/.gradle/6.7/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified TyroBot/.gradle/6.7/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified TyroBot/.gradle/6.7/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified TyroBot/.gradle/6.7/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified TyroBot/.gradle/6.7/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified TyroBot/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified TyroBot/.gradle/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
20 changes: 6 additions & 14 deletions TyroBot/src/main/java/fr/tyrolium/maxime/bot/message.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
package fr.tyrolium.maxime.bot;

import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.MessageChannel;
import net.dv8tion.jda.api.entities.User;
import net.dv8tion.jda.api.entities.*;
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;

import javax.annotation.Nonnull;
import java.util.concurrent.ExecutionException;

public class message extends ListenerAdapter {
@Override
Expand Down Expand Up @@ -58,7 +53,7 @@ public void onMessageReceived(@Nonnull MessageReceivedEvent event) {
"[t!] ping = la commade pour connaître son ping\n" +
"[t!] countserv = la commade pour savoir le nombre de personne dans le serveur que tu est\n" +
"\n" +
"-Debug\n" +
"-Debug\n" +
"\n" +
"[t!] moi = (debug)la commade pour savoir qui tu est\n" +
"[t!] chan = (debug)la commade pour savoir dans qu'elle channel tu est\n" +
Expand All @@ -72,10 +67,7 @@ public void onMessageReceived(@Nonnull MessageReceivedEvent event) {

if (event.getMessage().getContentRaw().toLowerCase().contains(Prefix + "ping")) {
long time = System.currentTimeMillis();
event.getChannel().sendMessage(emojiLoading) /* => RestAction<Message> */
.queue(response /* => Message */ -> {
response.editMessageFormat("Votre ping est de : %d ms", System.currentTimeMillis() - time).queue();
});
event.getChannel().sendMessage(emojiLoading).queue(response -> { response.editMessageFormat("Votre ping est de : %d ms", System.currentTimeMillis() - time).queue(); });
System.out.println(guildTab.getName() + " / " + channelTab.getName() + " <Requette Effectuez>");
}

Expand Down Expand Up @@ -164,14 +156,14 @@ public void onMessageReceived(@Nonnull MessageReceivedEvent event) {
"[t!] ping = la commade pour connaître son ping\n" +
"[t!] countserv = la commade pour savoir le nombre de personne dans le serveur que tu est\n" +
"\n" +
"-Debug\n" +
"-Debug\n" +
"\n" +
"[t!] moi = (debug)la commade pour savoir qui tu est\n" +
"[t!] chan = (debug)la commade pour savoir dans qu'elle channel tu est\n" +
"[t!] serv = (debug)la commade pour savoir dans qu'elle serveur tu est\n" +
"[t!] debug = (debug)pour voir le debug\n" +
"\n" +
"-Unique à " + guildTab.getName() + "\n" +
"-Unique à " + guildTab.getName() + "\n" +
"[t!] github = donne le github des membre de " + guildTab.getName() + "\n"
);
event.getChannel().sendMessage(embed.build()).queue();
Expand Down Expand Up @@ -227,7 +219,7 @@ public void onMessageReceived(@Nonnull MessageReceivedEvent event) {
System.out.println(guildTab.getName() + " / " + channelTab.getName() + " <Requette Effectuez>");
}
}

//Test
if (event.getMessage().getContentRaw().toLowerCase().contains(Prefix + "test")) {
event.getChannel().sendMessage("").queue();
Expand Down

0 comments on commit cea1cec

Please sign in to comment.