@friendlyrobot/discord-pi-agent 0.5.2 → 0.5.3
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/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -848,6 +848,10 @@ async function onMessage(message, config, agentService, sessionRegistry, authCon
|
|
|
848
848
|
console.log("[gateway] ignored bot message", { messageId: message.id });
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
|
+
if (message.system) {
|
|
852
|
+
console.log("[gateway] ignored system message", { messageId: message.id });
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
851
855
|
const scope = resolveScope(message);
|
|
852
856
|
if (scope === null) {
|
|
853
857
|
console.log("[gateway] unsupported channel type, ignoring", {
|