home
·
contact
·
privacy
projects
/
plomlombot-irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c08b761
)
Minor variable refactoring.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 17 Jan 2016 19:31:16 +0000
(20:31 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 17 Jan 2016 19:31:16 +0000
(20:31 +0100)
plomlombot.py
patch
|
blob
|
history
diff --git
a/plomlombot.py
b/plomlombot.py
index b312eb261d6c79610acd15882a2737fb81f49aa4..179bc2a2221d90da84580f57898aa3b704fca0f5 100644
(file)
--- 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)