Commit 1a675ea7 authored by Jean-Benoist Leger's avatar Jean-Benoist Leger

autojoin chans

parent 0f5e57fd
......@@ -2,3 +2,4 @@ server_name = irc.crans.org
server_port = 6667
nickname = legifrance
remain_time = 300
chans = "#flood", "#legibot"
......@@ -59,6 +59,8 @@ class MmBot(irc.IRCClient):
self.logger = MessageLogger()
self.logger.log("[connected at %s]" %
time.asctime(time.localtime(time.time())))
for c in self.botconf['chans']:
self.join(c)
def connectionLost(self, reason):
irc.IRCClient.connectionLost(self, reason)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment