mirror of
https://github.com/Colorado-Mesh/meshcore-bot-firmware.git
synced 2026-08-11 16:20:29 +00:00
forge: allow prefixless firmware bot dms
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: cj-vana <cj@depth23.online>
|
||||
Date: Fri, 15 May 2026 11:44:21 -0600
|
||||
Subject: [PATCH 1/2] Add companion radio firmware bot command parity
|
||||
Subject: [PATCH 1/3] Add companion radio firmware bot command parity
|
||||
|
||||
---
|
||||
.../companion_radio/BotCommandRegistry.cpp | 121 ++
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: cj-vana <cj@depth23.online>
|
||||
Date: Fri, 15 May 2026 19:58:42 -0600
|
||||
Subject: [PATCH 2/2] Harden firmware bot response coordination
|
||||
Subject: [PATCH 2/3] Harden firmware bot response coordination
|
||||
|
||||
---
|
||||
examples/companion_radio/BotCommands.cpp | 2 +-
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: cj-vana <cj@depth23.online>
|
||||
Date: Fri, 15 May 2026 20:09:58 -0600
|
||||
Subject: [PATCH 3/3] Allow prefixless firmware bot DMs
|
||||
|
||||
---
|
||||
examples/companion_radio/BotPolicy.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/examples/companion_radio/BotPolicy.cpp b/examples/companion_radio/BotPolicy.cpp
|
||||
index 33de45f8..7d0e6029 100644
|
||||
--- a/examples/companion_radio/BotPolicy.cpp
|
||||
+++ b/examples/companion_radio/BotPolicy.cpp
|
||||
@@ -75,7 +75,7 @@ bool isEmergency(BotChannelKind kind) {
|
||||
}
|
||||
|
||||
bool isPrefixlessCommandAllowed(BotChannelKind kind) {
|
||||
- return kind == BOT_CHANNEL_BOT || kind == BOT_CHANNEL_TESTING;
|
||||
+ return kind == BOT_CHANNEL_DM || kind == BOT_CHANNEL_BOT || kind == BOT_CHANNEL_TESTING;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user