diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b848b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/users.xml +/conf.xml +/target diff --git a/.hgignore b/.hgignore deleted file mode 100644 index 6bf8929..0000000 --- a/.hgignore +++ /dev/null @@ -1,4 +0,0 @@ -syntax:regexp -^users\.xml$ -^conf\.xml$ -^target$ diff --git a/src/main/java/fr/imirhil/april/hebdobot/Application.java b/src/main/java/fr/imirhil/april/hebdobot/Application.java index 22dd97c..fffeaab 100644 --- a/src/main/java/fr/imirhil/april/hebdobot/Application.java +++ b/src/main/java/fr/imirhil/april/hebdobot/Application.java @@ -36,7 +36,7 @@ public class Application implements ReviewListener { final String date = ISODateTimeFormat.basicDate().print(new DateTime()); final String text = review.toString(); try { - this.bot.sendMessage("Compte-rendu de la revue : " + this.bot.sendMessage("% Compte-rendu de la revue : " + this.pastebinClient.paste(text, "Revue APRIL " + date, Private.UNLISTED)); } catch (final Exception e) { @@ -49,7 +49,7 @@ public class Application implements ReviewListener { new File(date + "_" + this.properties.getProperty(FILE_SUFFIX)); FileUtils.writeStringToFile(file, text); - this.bot.sendMessage("Compte-rendu de la revue : " + this.bot.sendMessage("% Compte-rendu de la revue : " + file.getName()); } catch (final Exception e) { LOGGER.error("Error during file generation", e); diff --git a/src/main/java/fr/imirhil/april/hebdobot/irc/Bot.java b/src/main/java/fr/imirhil/april/hebdobot/irc/Bot.java index 6c45b7a..ee96723 100644 --- a/src/main/java/fr/imirhil/april/hebdobot/irc/Bot.java +++ b/src/main/java/fr/imirhil/april/hebdobot/irc/Bot.java @@ -145,8 +145,11 @@ public class Bot extends PircBot { listener.onEnd(this.review); } - this.review = null; + this.sendMessage("% " + + this.review.getOwner() + + ", ne pas oublier d'ajouter le compte-rendu de la revue sur https://agir.april.org/issues/135"); this.sendMessage("% Fin de la revue hebdomadaire"); + this.review = null; return true; }