Remind reviewer to post on agir.april.org
This commit is contained in:
parent
9254a9b779
commit
db61dc2390
4 changed files with 9 additions and 7 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
/users.xml
|
||||
/conf.xml
|
||||
/target
|
|
@ -1,4 +0,0 @@
|
|||
syntax:regexp
|
||||
^users\.xml$
|
||||
^conf\.xml$
|
||||
^target$
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue