From 94c8955e1f1c7fc9679594f013ccfaf1dc86a1f0 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 12 Jun 2024 16:21:26 -0700 Subject: [PATCH] Update pong-bot.py --- pong-bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pong-bot.py b/pong-bot.py index 1ec5cd2..f1bdde9 100644 --- a/pong-bot.py +++ b/pong-bot.py @@ -2,9 +2,12 @@ # Meshtastic Autoresponder PONG Bot # forked from https://github.com/pdxlocations/Meshtastic-Python-Examples/autoresponder.py project # K7MHI Kelly Keeton 2024 +# requirements `pip install -U meshtastic` to install the library from pubsub import pub -import meshtastic.serial_interface # requirements pip install meshtastic + +# Uncomment the interface you want to use depending on your device connection +import meshtastic.serial_interface #import meshtastic.tcp_interface #import meshtastic.ble_interface @@ -12,7 +15,6 @@ 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") #A list of strings to trap and respond to help_message = "PongBot, here for you like a friend who is not. Try: ping@foo" RESPOND_BY_DM_ONLY = True # Set to True to respond messages via DM only (keeps the channel clean)