This commit is contained in:
SpudGunMan
2024-10-05 15:31:41 -07:00
parent 8f47bc5799
commit 1502ccf3ac
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ def parse_log_file(file_path):
if 'Bot detected Commands' in line or 'LLM Query:' in line or 'PlayingGame' in line:
# get the command and user from the line
command = re.search(r"'cmd': '(\w+)'", line)
user = re.search(r"From: (\w+)", line)
user = re.search(r"From: (.+)$", line)
if 'LLM Query:' in line:
log_data['command_counts']['LLM Query'] += 1
+1 -1
View File
@@ -108,7 +108,7 @@ def parse_log_file(file_path):
if 'Bot detected Commands' in line or 'LLM Query:' in line or 'PlayingGame' in line:
# get the command and user from the line
command = re.search(r"'cmd': '(\w+)'", line)
user = re.search(r"From: (\w+)", line)
user = re.search(r"From: (.+)$", line)
if 'LLM Query:' in line:
log_data['command_counts']['LLM Query'] += 1