diff --git a/mesh_bot.py b/mesh_bot.py index 1724b7c..7143ba5 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -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 diff --git a/modules/system.py b/modules/system.py index 3468199..eb9ed08 100644 --- a/modules/system.py +++ b/modules/system.py @@ -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"