#!/usr/bin/env rakudo use v6.d; use Config::TOML; use IRC::Client; my $config = from-toml( file => (%*ENV // $?FILE.IO.sibling('boha.toml').Str) ); .run with IRC::Client.new( |($config), channels => $config.map(*.), :debug, :plugins( class :: does IRC::Client::Plugin { # irc-addressed for in-channel messages # irc-privmsg-me for direct messages method irc-to-me($e) { "Boo!" } }, ), );