Skip to content

Commit

Permalink
XOmBot will now announce whenever a commit is applied to the main XOm…
Browse files Browse the repository at this point in the history
…B repo
  • Loading branch information
LindseyB committed Jul 3, 2009
1 parent 6331956 commit eebb413
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions XOmBot.pl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ sub search_for_article {

sub check_rss {

my $response = $browser->get("http://github.com/feeds/LindseyB/commits/XOmBot/master");
my $response = $browser->get("http://github.com/feeds/xomboverlord/commits/xomb/master");

if($response->is_success && $response->content =~ m/<entry>\s*<id>.*\/(\w*)<\/id>/)
{
Expand All @@ -142,7 +142,6 @@ sub check_rss {
if($response->content =~ m/<entry>.*?<title>(.*?)<\/title>/s)
{
$commit_msg = $1;
print $commit_msg;
}

# get try to get the info to announce it
Expand All @@ -152,7 +151,7 @@ sub check_rss {
}

$conn->privmsg($conn->{channel}, "Commit made by $commiter: $commit_msg");
$conn->privmsg($conn->{channel}, "View: http://github.com/LindseyB/XOmBot/commit/$commitid");
$conn->privmsg($conn->{channel}, "View: http://github.com/xomboverlord/xomb/commit/$commitid");
}
}

Expand Down

0 comments on commit eebb413

Please sign in to comment.