|
|
@ -71,10 +71,13 @@ sub on_msg {
|
|
|
|
|
|
|
|
|
|
|
|
if ($nick ne $mynick && ($text =~ /pudding/ || $text =~ /brums/)) {
|
|
|
|
if ($nick ne $mynick && ($text =~ /pudding/ || $text =~ /brums/)) {
|
|
|
|
print Dumper($event);
|
|
|
|
print Dumper($event);
|
|
|
|
sleep(rand(30));
|
|
|
|
my $wait = 300;
|
|
|
|
print "=> $conn->{channel}\n";
|
|
|
|
if (time() > $conn->{lastpudding} + $wait) {
|
|
|
|
$conn->privmsg($conn->{channel}, "$nick: " . pudding);
|
|
|
|
sleep(rand(30));
|
|
|
|
$conn->{lastpudding} = time();
|
|
|
|
print "=> $conn->{channel}\n";
|
|
|
|
|
|
|
|
$conn->privmsg($conn->{channel}, "$nick: " . pudding);
|
|
|
|
|
|
|
|
$conn->{lastpudding} = time();
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
my $wait = 24 * 3600 * (0.5 + 0.5*rand());
|
|
|
|
my $wait = 24 * 3600 * (0.5 + 0.5*rand());
|
|
|
|
my (undef, undef, undef, undef, undef, undef, $wday) = localtime(time());
|
|
|
|
my (undef, undef, undef, undef, undef, undef, $wday) = localtime(time());
|
|
|
|