|
Revision 53, 448 bytes
(checked in by bkuhn, 10 months ago)
|
- Added SFLC's internally developed tim bot released under AGPLv3
|
| Line | |
|---|
| 1 |
#!perl |
|---|
| 2 |
use warnings; |
|---|
| 3 |
use strict; |
|---|
| 4 |
use Test::More; |
|---|
| 5 |
|
|---|
| 6 |
use lib qw(lib t/lib); |
|---|
| 7 |
|
|---|
| 8 |
require IO::Socket; |
|---|
| 9 |
my $s = IO::Socket::INET->new( |
|---|
| 10 |
PeerAddr => "irc.perl.org:6667", |
|---|
| 11 |
Timeout => 10, |
|---|
| 12 |
); |
|---|
| 13 |
|
|---|
| 14 |
if ($s) { |
|---|
| 15 |
close($s); |
|---|
| 16 |
plan tests => 3; |
|---|
| 17 |
} else { |
|---|
| 18 |
plan skip_all => "no net connection available"; |
|---|
| 19 |
exit; |
|---|
| 20 |
} |
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
use TestBot; |
|---|
| 25 |
|
|---|
| 26 |
my $bot = TestBot->new( |
|---|
| 27 |
nick => "basicbot_$$", |
|---|
| 28 |
server => "london.irc.perl.org", |
|---|
| 29 |
channels => ["#bot_basicbot_test"], |
|---|
| 30 |
); |
|---|
| 31 |
|
|---|
| 32 |
$bot->run; |
|---|
| 33 |
|
|---|