mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Added some more debugging stuffs to banterbot. Fixed some utils
This commit is contained in:
1 parent
f2dbad05af
commit
d7842734ac
7 files changed
+87
-55
No files matched your search
+3
-3
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
import fileinput
|
||||
import time
|
||||
import calendar
|
||||
@@ -7,7 +7,7 @@ import operator
|
||||
|
||||
MAX_NODES = 5
|
||||
|
||||
logfile = "/home/jumblesale/Code/irc/log"
|
||||
logfile = "/home/archangelic/irc/log"
|
||||
timeCutoff = calendar.timegm(time.gmtime()) - (3 * 7 * 24 * 60 * 60) # 3 weeks
|
||||
|
||||
nameFix = {
|
||||
@@ -31,7 +31,7 @@ def whoSaid(word):
|
||||
try:
|
||||
time, user, message = line.split("\t", 3)
|
||||
time = int(time)
|
||||
if nameFix.has_key(user):
|
||||
if user in nameFix:
|
||||
user = nameFix[user]
|
||||
else:
|
||||
user = user.lower()
|
||||
|
||||
Reference in new issue
Block a user