home · contact · privacy
Minor variable refactoring.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 17 Jan 2016 19:31:16 +0000 (20:31 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 17 Jan 2016 19:31:16 +0000 (20:31 +0100)
plomlombot.py

index b312eb261d6c79610acd15882a2737fb81f49aa4..179bc2a2221d90da84580f57898aa3b704fca0f5 100644 (file)
@@ -1,11 +1,13 @@
 import socket
-import datetime 
+import datetime
 import select
 import time
 import re
 import urllib.request
 import html
 
+servernet = "irc.freenode.net"
+port = 6667
 servername = ""
 timeout = 480
 username = "plomlombot"
@@ -69,7 +71,7 @@ class IO:
             line)
         return line
 
-io = IO("irc.freenode.net", 6667)
+io = IO(servernet, port)
 io.send_line("NICK " + nickname)
 io.send_line("USER " + username + " 0 * : ")
 io.send_line("JOIN " + channel)