~tyil/raku-local-musashi

2eceb29fb9cbb1a2ff85d02e58052ce3f3a0ef54 — Patrick Spek 2 months ago 082fa3e
Add IRC::Client::Plugin::Reminders
2 files changed, 12 insertions(+), 3 deletions(-)

M META6.json
M lib/Local/Musashi.pm6
M META6.json => META6.json +4 -2
@@ 9,10 9,12 @@
    "IO::Path::XDG",
    "IRC::Client",
    "IRC::Client::Plugin::NickServ:ver<0.3.0+>:api<0>",
    "IRC::Client::Plugin::DiceRolls:ver<0.2.0>",
    "IRC::Client::Plugin::DiceRolls:ver<0.2.1>",
    "Log:auth<cpan:TYIL>",
    "IO::Glob",
    "IRC::TextColor"
    "IRC::TextColor",
    "DB::Pg",
    "IRC::Client::Plugin::Reminders"
  ],
  "description": "Raku based IRC bot for Scriptkitties",
  "license": "AGPL-3.0",

M lib/Local/Musashi.pm6 => lib/Local/Musashi.pm6 +8 -1
@@ 8,6 8,7 @@ use IO::Path::XDG;
use IRC::Client;
use IRC::Client::Plugin::DiceRolls;
use IRC::Client::Plugin::NickServ;
use IRC::Client::Plugin::Reminders;
use IRC::TextColor;
use Log;
use Log::Level;


@@ 55,7 56,12 @@ unit sub MAIN (

	given ($*CONFIG.get('database.driver', '').fc) {
		when 'postgresql' {
			require DB::Pg;
			try require DB::Pg;

			if (DB::Pg ~~ Failure) {
				.emergency('Failed to load DB::Pg') with $*LOG;
				return;
			}

			my $conninfo = %(
				host => $*CONFIG.get('database.host', 'localhost'),


@@ 78,6 84,7 @@ unit sub MAIN (
	my @plugins = (
		IRC::Client::Plugin::NickServ.new(config => $*CONFIG),
		IRC::Client::Plugin::DiceRolls.new(config => $*CONFIG),
		IRC::Client::Plugin::Reminders.new(config => $*CONFIG),

		# Musashi-specific behaviour
		class {