You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
admins=set(f.read().split('\n')) #Usernames of server administrators, who can run "sudo" commands (in a set, since it is faster because sets are unindexed and unordered)
loggedAmountTotal= {} #Total amount of logs collected
311
309
loggedAmountIter= {} #Amount of logs collected since last finalized log
312
310
logFileHandles= {}
@@ -452,6 +450,7 @@ def parseOutput(line): #Parses the output, running subfunctions for logging and
452
450
ifchatL[0] ==1: #Is a regular chat message
453
451
logData('"'+chatL[1]+'" said "'+chatL[2]+'"', 'Chat') #Save formatted chat to chat log: "[User]" said "[Message]"
454
452
ifchatL[2].startswith(chatComPrefix): #If it is a ChatCommand
453
+
logData('"'+chatL[1]+'" tried to run "'+chatL[2]+'"', 'ChatCommands')
455
454
parseChatCommand(chatL[1], chatL[2])
456
455
#return False #Stop checking output
457
456
elifchatL[0] ==2: #Is a /me message
@@ -910,14 +909,15 @@ def autoBackup(): #Requires Linux
910
909
print ('Starting auto-backup...')
911
910
cwd=os.getcwd()
912
911
os.chdir(srvrFolder+'..') #Change to directory directly outside of server folder, so that the zip file has everything without a bunch of extra directory structure
0 commit comments