From 91f92252b3f003d409651c4f51ec90bc6a878cb0 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 21:55:04 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 45b803b..21dcb7b 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -66,7 +66,6 @@ bbsdb = config['bbs'].get('bbsdb', 'bbsdb.pkl') if bbs_enabled: trap_list = trap_list + trap_list_bbs # items bbslist, bbspost, bbsread, bbsdelete, bbshelp - print(f"System: BBS Enabled, using {bbsdb}") #Get the node number of the device, check if the device is connected try: @@ -433,6 +432,9 @@ def start_rx(): # Hello World print ("\nMeshtastic Autoresponder MESH Bot CTL+C to exit\n") +if bbs_enabled: + print(f"System: BBS Enabled, using {bbsdb}") + loop = asyncio.get_event_loop() try: loop.run_forever(start_rx())