Update mesh_bot.py

This commit is contained in:
SpudGunMan
2024-06-26 16:29:27 -07:00
parent d344bf7771
commit 3044cce0bd
+4 -3
View File
@@ -11,6 +11,7 @@ import meshtastic.ble_interface
from datetime import datetime
from dadjokes import Dadjoke # pip install dadjokes
# Import all the functions from the modules in the repo if you want to use them otherwise make waffles #
from solarconditions import * # from the spudgunman/meshing-around repo
from locationdata import * # from the spudgunman/meshing-around repo
from bbstools import * # from the spudgunman/meshing-around repo
@@ -24,9 +25,9 @@ interface = meshtastic.serial_interface.SerialInterface() #serial interface
trap_list = ("ping", "ack", "testing", "pong", "motd", "help", "lheard", "sitrep", "joke")
# join all lists, comment out unwanted funtionality, defined in corresponding files/modules
trap_list = trap_list + trap_list_location
trap_list = trap_list + trap_list_conditions
trap_list = trap_list + trap_list_bbs
trap_list = trap_list + trap_list_location # items tide, whereami, wxc, wx
trap_list = trap_list + trap_list_solarconditions # items hfcond, solar, sun, moon
trap_list = trap_list + trap_list_bbs # items bbslist, bbspost, bbsread, bbsdelete
welcome_message = "MeshBot, here for you like a friend who is not. Try sending: ping @foo or, help"
help_message = "Commands are: " + ", ".join(trap_list)