From 01c61f5d9bfe03ad40b4deda9f23ff97ef7ac2d8 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 17 Jan 2016 20:31:16 +0100 Subject: [PATCH] Minor variable refactoring. --- plomlombot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.30.2