BBS::UserInfo::SOB - Get user information of SOB-style BBS


BBS-UserInfo-SOB documentation  | view source Contained in the BBS-UserInfo-SOB distribution.

Index


NAME

Top

BBS::UserInfo::SOB - Get user information of SOB-style BBS

SYNOPSIS

Top

    use BBS::UserInfo::SOB;

    my $foo = BBS::UserInfo::SOB->new(
	    'debug' => 1,
	    'port' => 23,
	    'server' => 'birdnest.twbbs.org',
	    'telnet' => '/usr/bin/telnet',
	    'timeout' => 10
	    );

    # connect to the server
    $bot->connect() or die('Unable to connect BBS');

    my $userdata = $bot->query('username');

    # print some data
    print($userdata->{'logintimes'});

FUNCTIONS

Top

new()

Create a BBS::UserInfo::SOB object, there are some parameters that you can define:

    server => 'birdnest.twbbs.org'	# Necessary, server name
    port => 23				# Optional, server port
    telnet => 'telnet'			# Optional, telnet program
    timeout => 10			# Optional, Expect timeout
    debug => 1				# Optional, print debug information

connect()

Connect to the BBS server.

query()

Query user information and return a hash reference with:

* nickname
* logintimes
* posttimes
* lastlogintime
* lastloginip

AUTHOR

Top

Gea-Suan Lin, <gslin at gslin.org>

COPYRIGHT & LICENSE

Top


BBS-UserInfo-SOB documentation  | view source Contained in the BBS-UserInfo-SOB distribution.