Browse Source

allow for multiple channels on join

tags/v0.1
Ben Kurtovic 13 years ago
parent
commit
ed0f54419c
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      bot.py
  2. +1
    -1
      config.py

+ 2
- 1
bot.py View File

@@ -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()


+ 1
- 1
config.py View File

@@ -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


Loading…
Cancel
Save