From c4f953cd50a4e6ae99f3df9a866fdc99a1689277 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 18:07:57 -0700 Subject: [PATCH] enhance --- mesh_bot.py | 2 +- pong_bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 3094215..a46afa0 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -213,7 +213,7 @@ def onReceive(packet, interface): # If the packet is a DM (Direct Message) respond to it, otherwise validate its a message for us on the channel if packet['to'] == myNodeNum: # message is DM to us - if message_string == help_message or message_string == welcome_message: + if message_string == help_message or message_string == welcome_message or "CMD?:" in message_string: # ignore help and welcome messages print(f"{log_timestamp()} Got Own Welcome/Help header. From: {get_name_from_number(message_from_id)}") return diff --git a/pong_bot.py b/pong_bot.py index f7cff3b..a97e450 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -131,7 +131,7 @@ def onReceive(packet, interface): # If the packet is a DM (Direct Message) respond to it, otherwise validate its a message for us on the channel if packet['to'] == myNodeNum: # message is DM to us - if message_string == help_message or message_string == welcome_message: + if message_string == help_message or message_string == welcome_message or "CMD?:" in message_string: # ignore help and welcome messages print(f"{log_timestamp()} Got Own Welcome/Help header. From: {get_name_from_number(message_from_id)}") return