diff --git a/config/bot.conf.example b/config/bot.conf.example index 75c427c..33c0f4c 100644 --- a/config/bot.conf.example +++ b/config/bot.conf.example @@ -1,3 +1,6 @@ -server = 195.148.124.79 -nick = ilbot_nextgen -channel = \#bottest \#bottest2 +server = 195.148.124.79 +port = 6667 +ssl = 0 +password = +nick = ilbot6 +channel = \#bottest \#bottest2 diff --git a/ilbot2.pl b/ilbot2.pl index 4f0240e..a56bbab 100755 --- a/ilbot2.pl +++ b/ilbot2.pl @@ -127,11 +127,15 @@ package main; my $nick = shift @ARGV || $conf->{nick} || "ilbot6"; my $server = $conf->{server} // "irc.freenode.net"; my $port = $conf->{port} // 6667; +my $password = $conf->{password} // undef; +my $ssl = $conf->{ssl} // 0; my $channels = [ split m/\s+/, $conf->{channel}]; my $bot = Ilbot::Logger->new( server => $server, port => $port, + password => $password, + ssl => $ssl, channels => $channels, nick => $nick, alt_nicks => ["irclogbot", "logbot"],