modulePing

This commit is contained in:
SpudGunMan
2024-07-30 12:34:02 -07:00
parent 262915adfb
commit 616c876634
4 changed files with 16 additions and 4 deletions
-1
View File
@@ -328,7 +328,6 @@ async def start_rx():
await asyncio.sleep(0.5)
for signal in [SIGINT, SIGTERM]:
messageLoop.add_signal_handler(signal.SIGINT, rxLoop.cancel)
#exit_handler()
pass
def exit_handler():
+2
View File
@@ -12,6 +12,8 @@ bbs_ban_list = [] # list of banned users
bbs_admin_list = [] # list of admin users
repeater_channels = [] # list of channels to listen on for repeater mode
antiSpam = True # anti-spam feature to prevent flooding public channel
ping_enabled = True # ping feature to respond to pings, ack's etc.
sitrep_enabled = True # sitrep feature to respond to sitreps
# Read the config file, if it does not exist, create basic config file
config = configparser.ConfigParser()
+14 -2
View File
@@ -8,8 +8,20 @@ from datetime import datetime
from modules.settings import *
# Global Variables
trap_list = ("ping", "pinging", "ack", "testing", "test", "pong", "motd", "cmd", "lheard", "sitrep")
help_message = "CMD?: ping, motd, sitrep"
trap_list = ("cmd",) # default trap list
help_message = "CMD?:"
# Ping Configuration
if ping_enabled:
# ping, pinging, ack, testing, test, pong
trap_list_ping = ("ping", "pinging", "ack", "testing", "test", "pong")
trap_list = trap_list + trap_list_ping
help_message = help_message + "ping"
if sitrep_enabled:
trap_list_sitrep = ("sitrep", "lheard")
trap_list = trap_list + trap_list_sitrep
help_message = help_message + ", sitrep"
# Solar Conditions Configuration
if solar_conditions_enabled:
-1
View File
@@ -203,7 +203,6 @@ async def start_rx():
await asyncio.sleep(0.5)
for signal in [SIGINT, SIGTERM]:
messageLoop.add_signal_handler(signal.SIGINT, rxLoop.cancel)
#exit_handler()
pass
def exit_handler():