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