Compare commits
2 Commits
3bec9346e8
...
4e959438ff
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e959438ff | |||
| 9d8c964218 |
@@ -33,7 +33,7 @@ class MeshtasticController:
|
||||
def __init__(self):
|
||||
self.logs = {}
|
||||
self.load_logs()
|
||||
self.config = {
|
||||
self.config = { # These settings can be changed by authorized users while running
|
||||
"debug": False,
|
||||
"mute_public_channel": True,
|
||||
"mute_public_commands": True,
|
||||
@@ -150,7 +150,7 @@ class MeshtasticController:
|
||||
"role": "assistant" if log_entry['from'] == "Qwen" else "user",
|
||||
"content": log_entry['message']
|
||||
}
|
||||
print(f'Message parts: {message_parts}')
|
||||
#print(f'Message parts: {message_parts}')
|
||||
clean_logs.append(message_parts)
|
||||
|
||||
return clean_logs
|
||||
@@ -338,7 +338,7 @@ class MeshtasticController:
|
||||
elif self.config["mute_public_channel"] and not destination:
|
||||
print(f"Public channel muted: {message}")
|
||||
else:
|
||||
#print(f"Sending to {destination or 'public channel'}: {message}")
|
||||
print(f"Sending to {destination or 'public channel'}: {message}")
|
||||
self.interface.sendText(message, destinationId=destination)
|
||||
self.log(
|
||||
from_node="Qwen",
|
||||
|
||||
Reference in New Issue
Block a user