From b676ace34bdcd019f79089932184b40d6d819286 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 3 Oct 2024 16:34:24 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=8E=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit respond to bell command --- mesh_bot.py | 8 +++++++- modules/system.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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"