Pārlūkot izejas kodu

allow for multiple channels on join

tags/v0.1
Ben Kurtovic pirms 13 gadiem
vecāks
revīzija
ed0f54419c
2 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. +2
    -1
      bot.py
  2. +1
    -1
      config.py

+ 2
- 1
bot.py Parādīt failu

@@ -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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt