Browse Source

Un robot poli.

Julien Vaubourg 12 years ago
parent
commit
21d3c986d4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      fdnTopicAddBot/fdn-accbot.pl

+ 3 - 0
fdnTopicAddBot/fdn-accbot.pl

@@ -44,6 +44,9 @@ sub said {
 		} elsif($message->{"body"} =~ m/(?:git|svn|source)/i) {
 		} elsif($message->{"body"} =~ m/(?:git|svn|source)/i) {
 			$self->reply($message, $git);
 			$self->reply($message, $git);
 
 
+		} elsif($message->{"body"} =~ m/merci/i) {
+			$self->reply($message, "De rien.");
+
 		} else {
 		} else {
 			$self->reply($message, "Bonjour ".$message->{"who"}.". "
 			$self->reply($message, "Bonjour ".$message->{"who"}.". "
 				."Pour signaler un accident sur l'infrastructure de FDN, "
 				."Pour signaler un accident sur l'infrastructure de FDN, "