From 11d1fc33daf693fa872440aa92b9df9b00145b3f Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 30 Jun 2024 23:43:48 -0700 Subject: [PATCH] pinging --- 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 3314241..f21a7bc 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -22,7 +22,7 @@ interface = meshtastic.serial_interface.SerialInterface() #serial interface (spe #interface=meshtastic.ble_interface.BLEInterface("AA:BB:CC:DD:EE:FF") # BLE interface # A basic list of strings to trap and respond to -trap_list = ("ping", "ack", "testing", "pong", "motd", "help", "lheard", "sitrep", "joke") +trap_list = ("ping", "pinging", "ack", "testing", "pong", "motd", "help", "lheard", "sitrep", "joke") # comment out unwanted funtionality, defined in corresponding files/modules trap_list = trap_list + trap_list_location # items tide, whereami, wxc, wx diff --git a/pong_bot.py b/pong_bot.py index 40e3943..fa8f462 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -16,7 +16,7 @@ interface = meshtastic.serial_interface.SerialInterface() #serial interface #interface=meshtastic.tcp_interface.TCPInterface(hostname="192.168.0.1") # IP of your device #interface=meshtastic.ble_interface.BLEInterface("AA:BB:CC:DD:EE:FF") # BLE interface -trap_list = ("ping", "ack", "testing", "pong", "motd", "help", "lheard", "sitrep") #A list of strings to trap and respond to +trap_list = ("ping", "pinging", "ack", "testing", "pong", "motd", "help", "lheard", "sitrep") #A list of strings to trap and respond to welcome_message = "PongBot, here for you like a friend who is not. Try sending: ping @foo or, help" help_message = "Commands are: ping, ack, motd, Lheard. Use 'motd $foo' to set MOTD." RESPOND_BY_DM_ONLY = True # Set to True to respond messages via DM only (keeps the channel clean)