Changeset 241
- Timestamp:
- 03/02/06 17:48:06
- Files:
-
- trunk/plagger/AUTHORS (modified) (1 diff)
- trunk/plagger/lib/Plagger/Plugin/Notify/Campfire.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/AUTHORS
r228 r241 10 10 Fumiaki Yoshimatsu 11 11 Masafumi Otsune 12 Takeshi Nagayama trunk/plagger/lib/Plagger/Plugin/Notify/Campfire.pm
r240 r241 1 2 1 package Plagger::Plugin::Notify::Campfire; 3 2 … … 69 68 # still login 70 69 return 1 if ( $self->{mecha}->content =~ /chat-wrapper/); 71 70 72 71 if ( $self->{guest_url} ) { 73 72 $self->{mecha} … … 89 88 $self->{room_url} = $self->{guest_url}; 90 89 my ( $room_no, ) = $self->{mecha}->content =~ /participant_list-(\d+)/; 91 $self->{room_url} =~ s /\/\w+$/\/room\/$room_no/;90 $self->{room_url} =~ s!/\w+$!/room/$room_no!; 92 91 } 93 92 … … 107 106 __END__ 108 107 109 - module: Notify::Campfire 110 config: 111 guest_url: http://exmaple.campfirenow.com/room/xxxxx 112 nickname: nickname 113 speak_interval: 3 108 =head1 NAME 114 109 115 OR 110 Plagger::Plugin::Notify::Campfire - Notification bot for Campfire 116 111 117 - module: Notify::Campfire 118 config: 119 room_url: http://exmaple.campfirenow.com/xxxxxx 120 email: example@example.com 121 password: xxxxxx 122 speak_interval: 2 112 =head1 SYNOPSIS 123 113 114 To use bot as a guest (recommended), 115 116 - module: Notify::Campfire 117 config: 118 guest_url: http://exmaple.campfirenow.com/room/NNNN 119 nickname: nickname 120 speak_interval: 3 121 122 Or, to use bot using existent login credentials, 123 124 - module: Notify::Campfire 125 config: 126 room_url: http://exmaple.campfirenow.com/NNNN 127 email: example@example.com 128 password: xxxxxx 129 speak_interval: 2 130 131 =head1 DESCRIPTION 132 133 This plugin notifies feed updates to 37 Signals' Campfire 134 L<http://www.campfirenow.com/> chat room. 135 136 =head1 AUTHOR 137 138 Takeshi Nagayama 139 140 =head1 SEE ALSO 141 142 L<Plagger>, L<http://www.campfirenow.com/>, L<WWW::Mechanize> 143 144 =cut
