Commits

WaveHack committed 832c398

Removed valentine module.

  • Participants
  • Parent commits 0c47d00

Comments (0)

Files changed (1)

modules/valentine.pm

-package PinkieBot::Module::Valentine;
-use base 'PinkieBot::Module';
-use warnings;
-no warnings 'redefine';
-use strict;
-
-sub init {
-	my ($self, $bot, $message, $args) = @_;
-
-	# Register hooks
-	$self->registerHook('said', \&handleSaidValentine);
-}
-
-sub handleSaidValentine {
-	my ($bot, $message) = @_;
-
-	return unless (
-		($message->{body} =~ /(valentine|valentijn)/i)
-		&& ($message->{body} =~ /(alone|lonely|alleen|eenzaam|eenzame|commerci\w+)/i)
-	);
-
-	$bot->say(
-		who     => $message->{who},
-		channel => $message->{channel},
-		body    => ($message->{who} . ': http://www.youtube.com/watch?v=Clpw2B7Tr44'),
-		address => $message->{address}
-	);
-}
-
-1;