mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-21 09:02:33 +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
|
||||
|
||||
Reference in New Issue
Block a user