Changeset 27094 for lang/perl/PiPiSan
- Timestamp:
- 12/20/08 00:41:40 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/PiPiSan/branches/harapeco/command-bot.pl
r27087 r27094 20 20 use Getopt::Long; 21 21 use FindBin; 22 #use Smart::Comments; 22 23 23 24 if ($0 =~ /debug/) { … … 32 33 33 34 pod2usage(-verbose=>1) unless $config_file; 35 pod2usage(-verbose=>1) unless @ARGV; 36 34 37 ### $config_file 35 38 my $config = YAML::LoadFile($config_file); … … 42 45 ); 43 46 44 pod2usage(-verbose=>1) unless @ARGV;45 47 ### @ARGV 46 48 if ($ARGV[0] eq "lunch") { 47 49 for my $ch (@{ $config->{irc}{channels} }) { 50 $ch =~ s/\s+.*$//; 48 51 ### $ch 49 52 $client->post( 'IRC/lunch' => [ $ch ] ); … … 60 63 =head1 SYNOPSIS 61 64 62 B<command-bot.pl> B<COMMAND>65 B<command-bot.pl> -c config.yaml B<COMMAND> 63 66 64 67 COMMAND = lunch, reload
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)