简体   繁体   中英

Simple Perl module for accessing IRC servers

I'm trying to write an extremely simple IRC client which sets the topic on a given channel (for which it first needs to identify and gain ops). Ideally I want to be able to write something like this:

$client = new IRC::Client(%config);
$client->connect();
$client->identify('password');
$client->join('#channel');
$client->op('#channel'); # gain ops
$client->set_topic('#channel', 'new topic');
$client->disconnect();

Is there a module which supports this limited functionality, with a simple interface? All the IRC-related modules on metacpan seem to be aimed at people wanting to write fully functional bots - I've looked at Bot::BasicBot , but that seems to want me to subclass the module, and AnyEvent::IRC::Client seems quite low level. I don't want to write event-handling code, just connect, issue a few commands, and disconnect.

还考虑Net::Async::IRC

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM