Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-19 13:20:46 -07:00
parent 4b79ef3666
commit 75ca8a04dc
+1 -2
View File
@@ -19,7 +19,7 @@ interface = meshtastic.serial_interface.SerialInterface() #serial interface
trap_list = ("ping","ack","testing","pong","motd","help","sun","solar","hfcond","lheard") #A list of strings to trap and respond to
welcome_message = "MeshBot, here for you like a friend who is not. Try sending: ping @foo or, help"
help_message = "Commands are: ping, ack, motd, sun, solar, hfcond, lheard. Use 'motd $foo' to set MOTD."
help_message = "Commands are: ping, ack, motd, sun, solar, hfcond, 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)
MOTD = "Thanks for using PongBOT! Have a good day!" # Message of the Day
@@ -98,7 +98,6 @@ def onReceive(packet, interface):
else:
channel_number = 0
# check if the packet has a hop count flag use it
if packet.get('hopsAway'):
hop_away = packet['hopsAway']