respond to bell command
This commit is contained in:
SpudGunMan
2024-10-03 16:34:24 -07:00
parent 2d1e9af5cb
commit b676ace34b
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -67,7 +67,8 @@ def auto_response(message, snr, rssi, hop, pkiStatus, message_from_id, channel_n
"testing": lambda: handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM),
"test": lambda: handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM),
"whoami": lambda: handle_whoami(message_from_id, deviceID, hop, snr, rssi, pkiStatus),
"📍": lambda: handle_whoami(message_from_id, deviceID, hop, snr, rssi, pkiStatus)
"📍": lambda: handle_whoami(message_from_id, deviceID, hop, snr, rssi, pkiStatus),
"🔔": lambda: handle_alertBell(message_from_id, deviceID, message),
}
# set the command handler
@@ -161,6 +162,11 @@ def handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM):
return msg
def handle_alertBell(message_from_id, deviceID, message):
msg = ""
msg = "what this 🤖 needs is more 🐮🔔"
return msg
def handle_motd(message, message_from_id, isDM):
global MOTD
isAdmin = False
+1 -1
View File
@@ -18,7 +18,7 @@ games_enabled = False
# Ping Configuration
if ping_enabled:
# ping, pinging, ack, testing, test, pong
trap_list_ping = ("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"