Remind reviewer to post on agir.april.org

This commit is contained in:
Nicolas Vinot 2012-11-24 22:53:33 +01:00
parent 9254a9b779
commit db61dc2390
4 changed files with 9 additions and 7 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/users.xml
/conf.xml
/target

View File

@ -1,4 +0,0 @@
syntax:regexp
^users\.xml$
^conf\.xml$
^target$

View File

@ -36,7 +36,7 @@ public class Application implements ReviewListener {
final String date = ISODateTimeFormat.basicDate().print(new DateTime()); final String date = ISODateTimeFormat.basicDate().print(new DateTime());
final String text = review.toString(); final String text = review.toString();
try { try {
this.bot.sendMessage("Compte-rendu de la revue : " this.bot.sendMessage("% Compte-rendu de la revue : "
+ this.pastebinClient.paste(text, "Revue APRIL " + date, + this.pastebinClient.paste(text, "Revue APRIL " + date,
Private.UNLISTED)); Private.UNLISTED));
} catch (final Exception e) { } catch (final Exception e) {
@ -49,7 +49,7 @@ public class Application implements ReviewListener {
new File(date + "_" new File(date + "_"
+ this.properties.getProperty(FILE_SUFFIX)); + this.properties.getProperty(FILE_SUFFIX));
FileUtils.writeStringToFile(file, text); FileUtils.writeStringToFile(file, text);
this.bot.sendMessage("Compte-rendu de la revue : " this.bot.sendMessage("% Compte-rendu de la revue : "
+ file.getName()); + file.getName());
} catch (final Exception e) { } catch (final Exception e) {
LOGGER.error("Error during file generation", e); LOGGER.error("Error during file generation", e);

View File

@ -145,8 +145,11 @@ public class Bot extends PircBot {
listener.onEnd(this.review); 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.sendMessage("% Fin de la revue hebdomadaire");
this.review = null;
return true; return true;
} }