This commit is contained in:
Al Beano 2016-07-04 19:40:33 +01:00
parent 9db303b811
commit 37c817f70e
3 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,7 @@ use MarkovBot::Commands;
sub said {
my $self = shift;
my $msg = shift;
my $command_char = config "command_character";
my $command_char = quotemeta config "command_character";
# Ignore PMs and ignored users
return if $msg->{channel} eq 'msg';
@ -56,4 +56,6 @@ MarkovBot->new(
username => config("irc_nickname"),
name => config("irc_nickname"),
ssl => config("irc_ssl") eq "true" ? 1 : 0,
)->run();

View File

@ -11,8 +11,9 @@ redis_prefix: markov
#
# IRC Settings
#
irc_ssl: true
irc_server: irc.foo.bar
irc_port: 6667
irc_port: 6697
irc_channel: "#baz"
irc_nickname: shithead-ng
irc_nickname2: shithead

View File

@ -3,3 +3,4 @@ requires "YAML::Tiny" => "0";
requires "Bot::BasicBot" => "0";
requires "Redis" => "0";
requires "YAML::Tiny" => "0";
requires "POE::Component::SSLify" => "0";