Skip to content

Commit

Permalink
Handle event retweet_retweeted
Browse files Browse the repository at this point in the history
  • Loading branch information
semifor committed Mar 22, 2015
1 parent 2688aab commit b04286b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/POE/Component/Server/Twirc.pm
Expand Up @@ -1046,6 +1046,15 @@ event on_direct_message => sub {
for split /\r?\n/, $text;
};

sub on_event_retweet_retweeted {
my ( $self, $msg ) = @_;

my $screen_name = $msg->{source}{screen_name};
my $text = $msg->{target_object}{text};

$self->bot_notice($self->irc_channel, "$screen_name retweeted your retweet: $text");
}

########################################################################
# Commands
########################################################################
Expand Down

0 comments on commit b04286b

Please sign in to comment.