use lib <lib>;
use IRC::Client;
.run with IRC::Client.new:
:nick<MahBot>
:host(%*ENV<IRC_CLIENT_HOST> // 'irc.freenode.net')
:port<6697>,
:ssl,
:channels<#zofbot>
:debug
% perl6 blub.p6
◀▬▬ _ Attempting to connect to server
Type check failed in assignment to $!socket; expected IO::Socket::Async but got IO::Socket::Async::SSL (IO::Socket::Async::SS...)
in block at /home/grauwolf/.rakudobrew/moar-master/install/share/perl6/site/sources/91300E2449A727CEFB2F4BC51BC01429C567F65B (IRC::Client) line 223
in sub at /home/grauwolf/.rakudobrew/moar-master/install/share/perl6/site/sources/91300E2449A727CEFB2F4BC51BC01429C567F65B (IRC::Client) line 193
in block at /home/grauwolf/.rakudobrew/moar-master/install/share/perl6/site/sources/91300E2449A727CEFB2F4BC51BC01429C567F65B (IRC::Client) line 223
The SSL support does not seem to be working yet.
https://github.com/zoffixznet/perl6-IRC-Client/blob/a65947a81a2047bb05dad59d5fd3ccee09236605/lib/IRC/Client/Server.pm6#L18