More French -> English + fixed typo

This commit is contained in:
Alexandre CABANNE 2019-01-15 16:32:55 +01:00
parent 49f733b224
commit f9f1da2d50
10 changed files with 16 additions and 16 deletions

View File

@ -64,7 +64,7 @@ public class AntiSpam {
else else
MainBot.spamUtils.get(user).setMultip(1); MainBot.spamUtils.get(user).setMultip(1);
logger.info("Punition de "+user.getEffectiveName()+" avec un multiplicateur de "+MainBot.spamUtils.get(user)); logger.info("Starting protocol 66 on "+user.getEffectiveName()+" with a multiplicator of "+MainBot.spamUtils.get(user));
if(!MainBot.spamUtils.get(user).isOnSpam()) if(!MainBot.spamUtils.get(user).isOnSpam())
{ {
@ -77,7 +77,7 @@ public class AntiSpam {
MainBot.spamUtils.get(user).setMinuteur(new Minuteur(MainBot.spamUtils.get(user).getMultip(), move.user, move.saveRoleUser, move.serveur, move.serveurManager,event)); MainBot.spamUtils.get(user).setMinuteur(new Minuteur(MainBot.spamUtils.get(user).getMultip(), move.user, move.saveRoleUser, move.serveur, move.serveurManager,event));
MainBot.spamUtils.get(user).launchMinuteur(); MainBot.spamUtils.get(user).launchMinuteur();
}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 a "+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());
@ -129,7 +129,7 @@ public class AntiSpam {
@Override @Override
public void run() { public void run() {
logger.info("["+user.getEffectiveName()+"] Démarage pour "+multip+"min"); logger.info("["+user.getEffectiveName()+"] Start for "+multip+"min");
while (MainBot.spamUtils.get(user).isOnSpam()) while (MainBot.spamUtils.get(user).isOnSpam())
{ {
try { try {
@ -143,11 +143,11 @@ public class AntiSpam {
} }
timeLeft--; timeLeft--;
} }
logger.info("["+user.getEffectiveName()+"] Fin de spam pour "+user.getEffectiveName()+" apres "+multip+"min."); logger.info("["+user.getEffectiveName()+"] End of spam for "+user.getEffectiveName()+" after "+multip+"min.");
try { try {
move.exc(user, saveRoleUser, true, serveur, serveurManager); //aSaveroleUser=saveRoleUser.get(i) move.exc(user, saveRoleUser, true, serveur, serveurManager); //aSaveroleUser=saveRoleUser.get(i)
}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());
@ -155,7 +155,7 @@ public class AntiSpam {
new MessageTimeOut(messages,MainBot.messageTimeOut).start(); new MessageTimeOut(messages,MainBot.messageTimeOut).start();
logger.error("Hierarchy error"); logger.error("Hierarchy error");
} }
logger.info("["+user.getEffectiveName()+"] Fin des "+multip+"min"); logger.info("["+user.getEffectiveName()+"] End for "+multip+"min");
new MessageTimeOut(new ArrayList<>(MainBot.spamUtils.get(user).getMessages()),0).start(); new MessageTimeOut(new ArrayList<>(MainBot.spamUtils.get(user).getMessages()),0).start();
MainBot.spamUtils.get(user).clearAndAdd(chanel.sendMessage(EmbedMessageUtils.getSpamPardon(user)).complete()); MainBot.spamUtils.get(user).clearAndAdd(chanel.sendMessage(EmbedMessageUtils.getSpamPardon(user)).complete());
new MessageTimeOut(MainBot.spamUtils.get(user).getMessages(),60).start(); new MessageTimeOut(MainBot.spamUtils.get(user).getMessages(),60).start();

View File

@ -39,7 +39,7 @@ public class CommandLoader {
logger.info("..." + name); logger.info("..." + name);
if (command.isAnnotationPresent(NoDev.class) && MainBot.dev) { if (command.isAnnotationPresent(NoDev.class) && MainBot.dev) {
logger.warn("Command disable in dev mode"); logger.warn("Command disabled in dev mode");
}else{ }else{
try { try {
MainBot.commandes.put(name, command.newInstance()); MainBot.commandes.put(name, command.newInstance());

View File

@ -41,7 +41,7 @@ public class CommandParser {
logger.info("Auteur: "+e.getAuthor().getName()+", Commande: "+commande+", args: "+ Arrays.toString(args)); logger.info("Author: "+e.getAuthor().getName()+", Command: "+commande+", args: "+ Arrays.toString(args));
return new CommandContainer(brut, sansTete, splitSansTete, commande, args, e); return new CommandContainer(brut, sansTete, splitSansTete, commande, args, e);

View File

@ -73,7 +73,7 @@ public class DailyMadame implements NewDayListener{
} }
if(chanel != null){ if(chanel != null){
chanel.sendMessage("Le Daily Madame mes petits cochons :kissing_heart: \n" + imgUrl).queue(); chanel.sendMessage("Madame of the day :kissing_heart: \n" + imgUrl).queue();
} }

View File

@ -50,7 +50,7 @@ public class EmbedMessageUtils {
} }
public static MessageEmbed getSpamPardon(Member autor) { public static MessageEmbed getSpamPardon(Member autor) {
return new EmbedBuilder().setTitle(":mute: Spam Hunter :mute:").setDescription(autor.getAsMention() + " is back retour, watch out!\nI'm watching you!").setImage("https://media.giphy.com/media/3o7TKwBctlv08kY08M/giphy.gif").setFooter("Spam info available with '//spaminfo' in private.", MainBot.jda.getSelfUser().getAvatarUrl()).setTimestamp(Instant.now()).setColor(Color.orange).build(); return new EmbedBuilder().setTitle(":mute: Spam Hunter :mute:").setDescription(autor.getAsMention() + " is back , watch out!\nI'm watching you!").setImage("https://media.giphy.com/media/3o7TKwBctlv08kY08M/giphy.gif").setFooter("Spam info available with '//spaminfo' in private.", MainBot.jda.getSelfUser().getAvatarUrl()).setTimestamp(Instant.now()).setColor(Color.orange).build();
} }
public static MessageEmbed getHelp(String command) throws FileNotFoundException { public static MessageEmbed getHelp(String command) throws FileNotFoundException {

View File

@ -37,7 +37,7 @@ public class MessageTimeOut extends Thread{
e.printStackTrace(); e.printStackTrace();
} }
} }
logger.debug("Timiout! Deleting message!"); logger.debug("Time out! Deleting message!");
for(Message aMessage: messages) for(Message aMessage: messages)
{ {
try { try {

View File

@ -76,7 +76,7 @@ public class Moderateur {
} }
if(equalCont >= nbMessage){ if(equalCont >= nbMessage){
spam = 1; spam = 1;
logger.info("Detection de spam pour "+user.getEffectiveName()+"avec 3 messages identique: "); logger.info("Spam detected for "+user.getEffectiveName()+"with 3 identical messages : ");
for(Message aMessage : thisUserHistory) for(Message aMessage : thisUserHistory)
{ {
logger.info("\t - "+aMessage.getContentRaw()); logger.info("\t - "+aMessage.getContentRaw());
@ -113,7 +113,7 @@ public class Moderateur {
if(cpt > 5){ if(cpt > 5){
MainBot.message_compteur.put(user,0); MainBot.message_compteur.put(user,0);
spam = 1; spam = 1;
logger.info("Detection de spam pour "+user.getEffectiveName()+"avec 5 message en 5seg: "); logger.info("Spam detected for "+user.getEffectiveName()+"with 5 messages in 5 secondes: ");
ArrayList<Message> histo = MainBot.historique.get(user); ArrayList<Message> histo = MainBot.historique.get(user);
for (Message aMessage:histo ) for (Message aMessage:histo )
{ {

View File

@ -78,7 +78,7 @@ public class UserStatsUtils {
for(Guild guid : user.getMutualGuilds()){ for(Guild guid : user.getMutualGuilds()){
logger.debug(guid.getName()); logger.debug(guid.getName());
if(!guildStat.contains(guid.getId())){ if(!guildStat.contains(guid.getId())){
logger.debug("Guild " + guid.getName() + " stat don't exist"); logger.debug("Guild " + guid.getName() + " stats don't exist");
stats.add(new UserStats(guid.getId(), userEntity)); stats.add(new UserStats(guid.getId(), userEntity));
} }
} }

View File

@ -83,7 +83,7 @@ public class UserUtils {
pendingUserEntity = thisUser; pendingUserEntity = thisUser;
token = thisUser.getCheckToken(); token = thisUser.getCheckToken();
}else{ }else{
logger.warn("Password Not Match!"); logger.warn("Password don't match!");
throw new PasswordNotMatchException(); throw new PasswordNotMatchException();
} }
} }

View File

@ -117,7 +117,7 @@ public class AudioM {
@Override @Override
public void loadFailed(FriendlyException exception) { public void loadFailed(FriendlyException exception) {
logger.error("Cant load media!"); logger.error("Can't load media!");
logger.error(exception.getMessage()); logger.error(exception.getMessage());
event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Playback error !")).queue(); event.getTextChannel().sendMessage(EmbedMessageUtils.getMusicError("Playback error !")).queue();
} }