Skip to content

Commit

Permalink
Merge pull request moritz#32 from yongbin/support-additional-irc-conn…
Browse files Browse the repository at this point in the history
…ection-args

Support additional irc connection args
  • Loading branch information
moritz committed Feb 17, 2014
2 parents 652cf6f + 15138e6 commit d9e4b74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config/bot.conf.example
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions ilbot2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit d9e4b74

Please sign in to comment.