aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Source.pm
blob: dcb92e666f8cda4151fe7c4da0fe009d0888062e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package Plugin::Source;

use strict;
use warnings;

my %config;

sub configure {
	my $self = shift;
	my $cmdref = shift;
	my @source_commands = ("guts", "help", "source");
	$cmdref->($_, sub { $self->source(@_); }) for @source_commands;
	return $self;
}

sub source {
	my ($self, $irc, $logger, $who, $where, $rest, @arguments) = @_;
	my @urls = (
		"https://git.nah.nz/idalius/",
		"https://gitlab.com/dphillips/idalius");
	my $help_message = "My guts can be browsed at: ";
	return $help_message . join " ", @urls;
}
1;