mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-06-18 00:55:58 +02:00
enhance?
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user