@gonzih/cc-discord 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/notifier.js +3 -6
- package/package.json +1 -1
package/dist/notifier.js
CHANGED
|
@@ -202,12 +202,9 @@ export function startNotifier(bot, notifyChannelId, namespace, redis, handleUser
|
|
|
202
202
|
const content = parsed.content;
|
|
203
203
|
if (!content)
|
|
204
204
|
return;
|
|
205
|
-
//
|
|
206
|
-
//
|
|
207
|
-
|
|
208
|
-
const targetChannelId = ns === namespace
|
|
209
|
-
? (routedChannelIds.get(ns) ?? notifyChannelId ?? getActiveChannelId?.())
|
|
210
|
-
: routedChannelIds.get(ns);
|
|
205
|
+
// Only forward to Discord for explicitly routed namespaces.
|
|
206
|
+
// Primary namespace (money-brain) chat output belongs to Telegram — cc-tg handles that.
|
|
207
|
+
const targetChannelId = routedChannelIds.get(ns);
|
|
211
208
|
if (targetChannelId == null) {
|
|
212
209
|
log("warn", `meta-agent output: no channelId for namespace=${ns}, dropping line`);
|
|
213
210
|
return;
|