git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@762
c11ca15a-4712-0410-83d8-
924469b57eb5
where
where is
where are
+
+# botsnack etc praise
+# TODO add ACTION support
+praise
+ :)
+ thanks
+ aw, gee
# greetings.
if ($message =~ /how (the hell )?are (ya|you)( doin\'?g?)?\?*$/) {
- my $reply = &getRandom(keys %{ $lang{'howareyou'} });
- &performReply($reply);
-
+ &performReply(&getRandom(keys %{ $lang{'howareyou'} }));
return;
}
{
return 'praise: no addr' unless ($addressed);
- &status("random praise detected");
-
- my $tmp = (rand() < 0.5) ? "thanks $who " : "";
- &pSReply($tmp.":)");
-
+ &performReply(&getRandom(keys %{ $lang{'praise'} }));
return;
}