From e17dc79896c19a3e9a8e600daed8e56047d15705 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 4 Mar 2025 12:46:16 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9EBugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit issue https://github.com/SpudGunMan/meshing-around/issues/138 --- mesh_bot.py | 1 + modules/settings.py | 1 - modules/system.py | 7 +++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 41fac57..5ecc085 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -1077,6 +1077,7 @@ def onReceive(packet, interface): replyIDset = False emojiSeen = False isDM = False + playingGame = False if DEBUGpacket: # Debug print the interface object diff --git a/modules/settings.py b/modules/settings.py index d701934..a29747e 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -26,7 +26,6 @@ max_retry_count2 = 4 # max retry count for interface 2 retry_int1 = False retry_int2 = False wiki_return_limit = 3 # limit the number of sentences returned off the first paragraph first hit -playingGame = False GAMEDELAY = 28800 # 8 hours in seconds for game mode holdoff cmdHistory = [] # list to hold the last commands seenNodes = [] # list to hold the last seen nodes diff --git a/modules/system.py b/modules/system.py index 7b3b50e..b4f0b73 100644 --- a/modules/system.py +++ b/modules/system.py @@ -90,6 +90,13 @@ if location_enabled: else: # NOAA only features help_message = help_message + ", wxa, tide, ealert" + +# NOAA alerts needs location module +if wxAlertBroadcastEnabled or emergencyAlertBrodcastEnabled: + from modules.locationdata import * # from the spudgunman/meshing-around repo + # limited subset, this should be done better but eh.. + trap_list = trap_list + ("wx", "wxc", "wxa", "wxalert", "ea", "ealert") + help_message = help_message + ", wxalert, ealert" # BBS Configuration if bbs_enabled: