From: Christian Heller Date: Sun, 17 Jan 2016 19:31:16 +0000 (+0100) Subject: Minor variable refactoring. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/tasks?a=commitdiff_plain;h=01c61f5d9bfe03ad40b4deda9f23ff97ef7ac2d8;p=plomlombot-irc.git Minor variable refactoring. --- diff --git a/plomlombot.py b/plomlombot.py index b312eb2..179bc2a 100644 --- a/plomlombot.py +++ b/plomlombot.py @@ -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)