From ed0f54419c2cc183d15fc774a316122625a3d109 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 10 Apr 2011 00:55:46 -0400 Subject: [PATCH] allow for multiple channels on join --- bot.py | 3 ++- config.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index c8f3f19..7e700dd 100644 --- a/bot.py +++ b/bot.py @@ -63,7 +63,8 @@ def main(): if line2[1] == "376": if NS_AUTH: say("NickServ", "IDENTIFY %s %s" % (NS_USER, NS_PASS)) - join(CHAN) + for this_chan in CHANS: # join all of our startup channels + join(this_chan) if __name__ == "__main__": s = socket.socket() diff --git a/config.py b/config.py index e06f4ce..e04898c 100644 --- a/config.py +++ b/config.py @@ -16,7 +16,7 @@ IDENT = "earwigbot" REALNAME = "[[w:en:User:EarwigBot]]" # channel to join on startup -CHAN = "##earwigbot" +CHANS = ["##earwigbot"] # sleep this number of seconds in between API calls and messages sent to IRC THROTTLE = 1