mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-03 23:42:28 +02:00
🛎️
respond to bell command
This commit is contained in:
+7
-1
@@ -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
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user