1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 19:15:40 -04:00

made it remove common stuff

This commit is contained in:
Ryan Voots 2010-10-05 00:31:30 -04:00
parent 2039610fae
commit ec37fa7c0a

View file

@ -39,10 +39,11 @@ sub {
{
@a = split(/(?:\bor\b|\s*,\s*)/, $said->{body});
}
s/^\s*//, s/\s*\?\s*$// for @a; #trim them up
$common = $findcommon->(@a);
s/^$common// for @a; # remove the common stuff for grammar
}
else
{
@ -68,7 +69,7 @@ sub {
"As I see it, yes");
}
print $a[rand@a]." $common."
print $a[rand@a]."."
}
__DATA__