Added some more debugging stuffs to banterbot. Fixed some utils

This commit is contained in:
RussellChamp committed 2018-11-20 16:41:16 -05:00
1 parent f2dbad05af
commit d7842734ac
7 files changed
+87 -55

No files matched your search

+3 -3
View File
@@ -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()