NickServ integration for IRC::Client
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/IRC/Client/Plugin
.editorconfig
.gitignore
.travis.yml
META6.json
readme.adoc

readme.adoc

IRC::Client::Plugin::NickServ

Handle NickServ interaction for IRC::Client projects. Currently only does identification with NickServ.

Usage

Install this module through the Perl 6 package manager (zef):

zef install IRC::Client::Plugin::NickServ

Next, enable it as a plugin in your IRC::Client project:

use Config;
use IRC::Client;
use IRC::Client::Plugin::NickServ;

sub MAIN
{
	my Config $config = Config.new;

	$config.read: %(
		nickserv => %(
			nickname => "testbot",
			password => "testpassword",
		),
	);

	.run with IRC::Client.new(
		:nick($config<nickserv><nickname>),
		:plugins(
			IRC::Client::Plugin::NickServ.new(:$config)
		)
	);
}

License

This sourcecode is distributed under the GPLv3 license.