French -> English, translation of all french message
This commit is contained in:
parent
526caa4bb2
commit
09e131aebc
@ -42,7 +42,7 @@ public class Cat implements Commande {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
event.getPrivateChannel().sendMessage("\n:warning: **__Commande non disponible en privee!__** :warning:").queue();
|
event.getPrivateChannel().sendMessage("\n:warning: **__This command cannot be used there !__** :warning:").queue();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ public class Flush implements Commande{
|
|||||||
@Override
|
@Override
|
||||||
public void action(String[] args, MessageReceivedEvent event) {
|
public void action(String[] args, MessageReceivedEvent event) {
|
||||||
if(args.length<1){
|
if(args.length<1){
|
||||||
event.getTextChannel().sendMessage(EmbedMessageUtils.getFlushError("Argument manquant!")).queue();
|
event.getTextChannel().sendMessage(EmbedMessageUtils.getFlushError("Missing argument!")).queue();
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -36,12 +36,12 @@ public class Flush implements Commande{
|
|||||||
|
|
||||||
|
|
||||||
}catch (NumberFormatException e){
|
}catch (NumberFormatException e){
|
||||||
event.getTextChannel().sendMessage(EmbedMessageUtils.getFlushError("L'argument n'est pas valide!")).queue();
|
event.getTextChannel().sendMessage(EmbedMessageUtils.getFlushError("Argument unknown!")).queue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
event.getTextChannel().sendMessage(EmbedMessageUtils.getFlushError("Vous n'avez pas l'autorisation de faire ça!")).queue();
|
event.getTextChannel().sendMessage(EmbedMessageUtils.getFlushError("You are not a supreme being, you cannot do that !")).queue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ public class Help implements Commande {
|
|||||||
if(isAdmin(event))
|
if(isAdmin(event))
|
||||||
role = "Admin";
|
role = "Admin";
|
||||||
else
|
else
|
||||||
role = "Non Admin";
|
role = "No Admin";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
PrivateMessage.send(event.getAuthor(), EmbedMessageUtils.getHelpList(role, txt),logger);
|
PrivateMessage.send(event.getAuthor(), EmbedMessageUtils.getHelpList(role, txt),logger);
|
||||||
|
@ -23,7 +23,7 @@ import java.util.List;
|
|||||||
public class Move implements Commande {
|
public class Move implements Commande {
|
||||||
|
|
||||||
Logger logger = LogManager.getLogger();
|
Logger logger = LogManager.getLogger();
|
||||||
private String HELP="`//move <@utilisateur> <@rôleCible>`\n:arrow_right:\t*Deplacement d'un utilisateur vers un rôle cible, attention à bien faire les mentions.*";
|
private String HELP="`//move <@user> <@Role>`\n:arrow_right:\t*Move a user to a specified role.*";
|
||||||
public List<Role> saveRoleUser;
|
public List<Role> saveRoleUser;
|
||||||
public Member user;
|
public Member user;
|
||||||
public Guild serveur;
|
public Guild serveur;
|
||||||
@ -91,7 +91,7 @@ public class Move implements Commande {
|
|||||||
if(userL.size()<1 ||roleL.size()<1)
|
if(userL.size()<1 ||roleL.size()<1)
|
||||||
{
|
{
|
||||||
logger.warn("Mention Incorect.");
|
logger.warn("Mention Incorect.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Utilisateur ou Role mal mentioner.")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Error, please check if the user and/or the role are existing.")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -110,7 +110,7 @@ public class Move implements Commande {
|
|||||||
boolean erreur=this.exc(user,roleL,true,serveur,serveur.getManager());
|
boolean erreur=this.exc(user,roleL,true,serveur,serveur.getManager());
|
||||||
if(erreur)
|
if(erreur)
|
||||||
{
|
{
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Verifier le rôle cible. ")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Check the targeted role. ")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -135,7 +135,7 @@ public class Move implements Commande {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveOk("Déplacement de "+user.getEffectiveName()+" vers "+roleStr.toString()+" reussi.")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveOk("User "+user.getEffectiveName()+" as been successfully moved to "+roleStr.toString())).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -143,7 +143,7 @@ public class Move implements Commande {
|
|||||||
new MessageTimeOut(messages,MainBot.messageTimeOut).start();
|
new MessageTimeOut(messages,MainBot.messageTimeOut).start();
|
||||||
}
|
}
|
||||||
}catch (HierarchyException e){
|
}catch (HierarchyException e){
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Impossible de déplacer un "+user.getRoles().get(0).getAsMention())).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("You cannot move "+user.getRoles().get(0).getAsMention())).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -160,7 +160,7 @@ public class Move implements Commande {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger.warn("Arguments maquants.");
|
logger.warn("Arguments maquants.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Arguments manquants.")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Missing argument.")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
|
@ -49,7 +49,7 @@ public class Music implements Commande {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Non connecté sur un chanel vocal!")).complete();
|
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("You are not in a voice channel !")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(message);
|
add(message);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -58,7 +58,7 @@ public class Music implements Commande {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Arguments manquant!")).complete();
|
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Missing argument!")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(message);
|
add(message);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -102,7 +102,7 @@ public class Music implements Commande {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Arguments manquant!")).complete();
|
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Missing argument!")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(message);
|
add(message);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -117,7 +117,7 @@ public class Music implements Commande {
|
|||||||
audio.add(event,args[1],1,true);
|
audio.add(event,args[1],1,true);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Arguments manquant!")).complete();
|
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Missing argument!")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(message);
|
add(message);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -135,7 +135,7 @@ public class Music implements Commande {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Arguments inconnus!")).complete();
|
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Unknown argument!")).complete();
|
||||||
List<Message> messagess = new ArrayList<Message>(){{
|
List<Message> messagess = new ArrayList<Message>(){{
|
||||||
add(message);
|
add(message);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -146,7 +146,7 @@ public class Music implements Commande {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Arguments manquants!")).complete();
|
Message message = event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Missing argument!")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(message);
|
add(message);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
|
@ -21,7 +21,7 @@ import java.io.IOException;
|
|||||||
public class Madame extends NumberedCommande {
|
public class Madame extends NumberedCommande {
|
||||||
Logger logger = LogManager.getLogger();
|
Logger logger = LogManager.getLogger();
|
||||||
MessageReceivedEvent event;
|
MessageReceivedEvent event;
|
||||||
public String HELP = "T'es sérieux la?";
|
public String HELP = "Yo really? Just type Madame to see some :cat:";
|
||||||
|
|
||||||
public Madame() {
|
public Madame() {
|
||||||
super(LogManager.getLogger(), "http://www.bonjourmadame.fr/page/", "/");
|
super(LogManager.getLogger(), "http://www.bonjourmadame.fr/page/", "/");
|
||||||
|
@ -106,7 +106,7 @@ public class Spam implements Commande {
|
|||||||
if(userL.size()<1)
|
if(userL.size()<1)
|
||||||
{
|
{
|
||||||
logger.error("Utilisateur introuvable.");
|
logger.error("Utilisateur introuvable.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: Utilisateur introuvable. ","pardon")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: User not found. ","pardon")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -124,7 +124,7 @@ public class Spam implements Commande {
|
|||||||
MainBot.spamUtils.get(user).setOnSpam(false);
|
MainBot.spamUtils.get(user).setOnSpam(false);
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Utilisateur pas en spam.");
|
logger.warn("Utilisateur pas en spam.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: Utilisateur non spammeur.","pardon")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: This user is not in spam.","pardon")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -135,7 +135,7 @@ public class Spam implements Commande {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Utilisateur pas en spam.");
|
logger.warn("Utilisateur pas en spam.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: Utilisateur non spammeur.","pardon")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: This user is not in spam.","pardon")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -147,7 +147,7 @@ public class Spam implements Commande {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger.warn("Argument manquant.");
|
logger.warn("Argument manquant.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Argument manquant!","pardon")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","pardon")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -176,14 +176,14 @@ public class Spam implements Commande {
|
|||||||
if(userL.size()<1)
|
if(userL.size()<1)
|
||||||
{
|
{
|
||||||
logger.warn("Mentionnement Incorect (Spam).");
|
logger.warn("Mentionnement Incorect (Spam).");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Utilisateur mal mentioner. ","extermine")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Bad mention. ","extermine")).complete();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
|
|
||||||
Guild serveur = event.getGuild();
|
Guild serveur = event.getGuild();
|
||||||
Member user = serveur.getMember(userL.get(0));
|
Member user = serveur.getMember(userL.get(0));
|
||||||
logger.info("Tentative d'extermination de "+user.getEffectiveName()+" par l'utilisateur "+event.getAuthor().getName());
|
logger.info("Starting protocol 66 on "+user.getEffectiveName()+" by the command of "+event.getAuthor().getName());
|
||||||
|
|
||||||
|
|
||||||
String multiStr =args[2];
|
String multiStr =args[2];
|
||||||
@ -201,7 +201,7 @@ public class Spam implements Commande {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger.warn("Utilisateur deja en spam.");
|
logger.warn("Utilisateur deja en spam.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Utilisateur déjà spammeur.","extermine")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("User already in spam.","extermine")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -223,7 +223,7 @@ public class Spam implements Commande {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger.warn("Argument manquant.");
|
logger.warn("Argument manquant.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Argument manquant!","extermine")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","extermine")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -251,7 +251,7 @@ public class Spam implements Commande {
|
|||||||
if(userL.size()<1)
|
if(userL.size()<1)
|
||||||
{
|
{
|
||||||
logger.warn("Utilisateur introuvable.");
|
logger.warn("Utilisateur introuvable.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Utilisateur introuvable.","reset")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("User not found.","reset")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -269,7 +269,7 @@ public class Spam implements Commande {
|
|||||||
****************************/
|
****************************/
|
||||||
if (MainBot.spamUtils.containsKey(user)) {
|
if (MainBot.spamUtils.containsKey(user)) {
|
||||||
logger.info("Reset du multiplicateur de " + user.getEffectiveName() + " réussi");
|
logger.info("Reset du multiplicateur de " + user.getEffectiveName() + " réussi");
|
||||||
Message rest = event.getTextChannel().sendMessage(event.getAuthor().getAsMention() + "\n *Le multiplcicateur de " + user.getEffectiveName() + " a été remit a zéro.*").complete();
|
Message rest = event.getTextChannel().sendMessage(event.getAuthor().getAsMention() + "\n *The multiplicator of " + user.getEffectiveName() + " is now down to zero.*").complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
@ -284,7 +284,7 @@ public class Spam implements Commande {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger.warn("Argument manquant.");
|
logger.warn("Argument manquant.");
|
||||||
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Argument manquant!","reset")).complete();
|
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","reset")).complete();
|
||||||
List<Message> messages = new ArrayList<Message>(){{
|
List<Message> messages = new ArrayList<Message>(){{
|
||||||
add(rest);
|
add(rest);
|
||||||
add(event.getMessage());
|
add(event.getMessage());
|
||||||
|
@ -43,23 +43,23 @@ public class SpamInfo implements Commande{
|
|||||||
Message message = null;
|
Message message = null;
|
||||||
if(!MainBot.spamUtils.containsKey(user)){
|
if(!MainBot.spamUtils.containsKey(user)){
|
||||||
if(!event.isFromType(ChannelType.PRIVATE))
|
if(!event.isFromType(ChannelType.PRIVATE))
|
||||||
message = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName() + ":\n\t- Multiplicateur: `1`\n\t- En spam: `Non`")).complete();
|
message = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName() + ":\n\t- Multiplicator: `1`\n\t- In spam: `No`")).complete();
|
||||||
else
|
else
|
||||||
PrivateMessage.send(event.getAuthor(),EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+":\n\t- Multiplicateur: `1`\n\t- En spam: `Non`"),logger);
|
PrivateMessage.send(event.getAuthor(),EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+":\n\t- Multiplicator: `1`\n\t- In spam: `No`"),logger);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
UserSpamUtils util = MainBot.spamUtils.get(user);
|
UserSpamUtils util = MainBot.spamUtils.get(user);
|
||||||
if(!util.isOnSpam()){
|
if(!util.isOnSpam()){
|
||||||
if(!event.isFromType(ChannelType.PRIVATE))
|
if(!event.isFromType(ChannelType.PRIVATE))
|
||||||
message = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+"\n\t- Multiplicateur: `"+util.getMultip()+"`\n\t- En spam: `Non`")).complete();
|
message = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+"\n\t- Multiplicator: `"+util.getMultip()+"`\n\t- In spam: `No`")).complete();
|
||||||
else
|
else
|
||||||
PrivateMessage.send(event.getAuthor(),EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+":\n\t- Multiplicateur: `"+util.getMultip()+"`\n\t- En spam: `Non`"),logger);
|
PrivateMessage.send(event.getAuthor(),EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+":\n\t- Multiplicator: `"+util.getMultip()+"`\n\t- In spam: `No`"),logger);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(!event.isFromType(ChannelType.PRIVATE))
|
if(!event.isFromType(ChannelType.PRIVATE))
|
||||||
message = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+":\n\t- Multiplicateur: `"+util.getMultip()+"`\n\t- En spam: `Oui`\n\t- Temps restant: `"+formatSecond(util.getTimeLeft())+"`")).complete();
|
message = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+":\n\t- Multiplicator: `"+util.getMultip()+"`\n\t- In spam: `Yes`\n\t- Time remaining: `"+formatSecond(util.getTimeLeft())+"`")).complete();
|
||||||
else
|
else
|
||||||
message = PrivateMessage.send(event.getAuthor(),EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+"\n\t- Multiplicateur: `"+util.getMultip()+"`\n\t- En spam: `Oui`\n\t- Temps restant: `"+formatSecond(util.getTimeLeft())+"`"),logger);
|
message = PrivateMessage.send(event.getAuthor(),EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+"\n\t- Multiplicator: `"+util.getMultip()+"`\n\t- In spam: `Yes`\n\t- Time remaining: `"+formatSecond(util.getTimeLeft())+"`"),logger);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(message != null){
|
if(message != null){
|
||||||
@ -122,7 +122,7 @@ public class SpamInfo implements Commande{
|
|||||||
logger.debug(""+days+":"+hours+":"+minutes+":"+seconds);
|
logger.debug(""+days+":"+hours+":"+minutes+":"+seconds);
|
||||||
String finalText = "";
|
String finalText = "";
|
||||||
if(days!=0)
|
if(days!=0)
|
||||||
finalText += days+" jour(s) ";
|
finalText += days+" day(s) ";
|
||||||
if(hours!=0)
|
if(hours!=0)
|
||||||
finalText += hours+"h ";
|
finalText += hours+"h ";
|
||||||
if(minutes!=0)
|
if(minutes!=0)
|
||||||
@ -159,7 +159,7 @@ public class SpamInfo implements Commande{
|
|||||||
try {
|
try {
|
||||||
Thread.sleep(500);
|
Thread.sleep(500);
|
||||||
if(util.getTimeLeft()%5 == 0 && oldValue - util.getTimeLeft() >= 5){
|
if(util.getTimeLeft()%5 == 0 && oldValue - util.getTimeLeft() >= 5){
|
||||||
message.editMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+":\n\t- Multiplicateur: `"+util.getMultip()+"`\n\t- En spam: `Oui`\n\t- Temps restant: `"+formatSecond(util.getTimeLeft())+"`")).complete();
|
message.editMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+":\n\t- Multiplicator: `"+util.getMultip()+"`\n\t- In spam: `Yes`\n\t- Time remaining: `"+formatSecond(util.getTimeLeft())+"`")).complete();
|
||||||
oldValue = util.getTimeLeft();
|
oldValue = util.getTimeLeft();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ public class SpamInfo implements Commande{
|
|||||||
if(stop)
|
if(stop)
|
||||||
message.editMessage(new EmbedBuilder().setColor(Color.RED).setTitle("Aborted").build()).complete();
|
message.editMessage(new EmbedBuilder().setColor(Color.RED).setTitle("Aborted").build()).complete();
|
||||||
else
|
else
|
||||||
message.editMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+"\n\t- Multiplicateur: `"+util.getMultip()+"`\n\t- En spam: `Non`")).complete();
|
message.editMessage(EmbedMessageUtils.getSpamInfo(user.getEffectiveName()+"\n\t- Multiplicator: `"+util.getMultip()+"`\n\t- In spam: `No`")).complete();
|
||||||
|
|
||||||
}
|
}
|
||||||
logger.debug("Timer for message deletion of "+user.getEffectiveName()+" stated...");
|
logger.debug("Timer for message deletion of "+user.getEffectiveName()+" stated...");
|
||||||
|
Loading…
Reference in New Issue
Block a user