Chatbot-Alpha
view release on metacpan or search on metacpan
lib/Chatbot/Alpha.pm view on Meta::CPAN
$simple =~ s/[^A-Za-z0-9 ]//g;
$simple =~ s/^\s+//g;
$simple =~ s/\s$//g;
# Save this message.
$self->debug ("Saving this as last msg...");
$self->{users}->{$id}->{that} = $simple;
$self->{users}->{$id}->{last} = $msg;
$self->{users}->{$id}->{hold} ||= 0;
# Reset the loop timer.
$self->{loops} = 0;
# There SHOULD be a reply now.
# So, return it.
return $reply;
}
sub stringUtil {
my ($type,$string) = @_;
( run in 1.076 second using v1.01-cache-2.11-cpan-49f99fa48dc )