mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Some bot changes and stuff
This commit is contained in:
1 parent
94127052c9
commit
ebb5f2fe37
9 files changed
+61
-44
No files matched your search
@@ -31,7 +31,8 @@ with open(logfile, "r") as log:
|
||||
continue #We don't care what they say
|
||||
if time >= timeCutoff and time <= timeTo:
|
||||
#print "Processing line from " + user + " at " + str(time)
|
||||
for word in re.sub('[\'\"\`\/\\;:,.?!*&^\-()<>|_\[\]0-9]', '', message).lower().split():
|
||||
for word in re.sub('[\'\"\`\/\\;:,.?!*&^\-()<>\{\}|_\[\]0-9]', ' ', message).lower().split():
|
||||
#changing symbols into spaces instead of stripping them avoids compounded words
|
||||
if len(word) < minLength or word in bannedWords:
|
||||
#print "Rejecting " + word
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user