diff --git a/pong-bot.py b/pong-bot.py index 02f6981..f128684 100644 --- a/pong-bot.py +++ b/pong-bot.py @@ -9,16 +9,15 @@ import meshtastic.serial_interface #pip install meshtastic import meshtastic.tcp_interface import meshtastic.ble_interface -from solarconditions import * # from the spudgunman/meshing-around repo # Uncomment the interface you want to use depending on your device connection 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","sun","solar","hfcond") #A list of strings to trap and respond to +trap_list = ("ping","ack","testing","pong","motd","help") #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, sun, solar, hfcond" +help_message = "Commands are: ping, ack, motd, help. Use 'motd $' 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 @@ -63,13 +62,6 @@ def auto_response(message,snr,rssi,hop): bot_response = MOTD elif "help" in message.lower(): bot_response = help_message - elif "sun" in message.lower(): - suntime = get_sunrise_sunset() - bot_response = "Sunrise: " + suntime[0] + "\nSunset: " + suntime[1] - elif "hfcond" in message.lower(): - bot_response = hf_band_conditions() - elif "solar" in message.lower(): - bot_response = drap_xray_conditions() else: bot_response = "I'm sorry, I'm afraid I can't do that."