breezy-belgium-57865
12/09/2025, 12:30 PMgentle-policeman-89141
12/09/2025, 2:27 PMbreezy-belgium-57865
12/09/2025, 4:55 PMloud-crowd-60573
12/09/2025, 10:25 PMloud-crowd-60573
12/09/2025, 10:26 PMbreezy-belgium-57865
12/10/2025, 7:26 AMBefore Incoming if logic is true, skip to After turn End directly without passing through the bot?gentle-policeman-89141
12/10/2025, 10:54 AMgentle-policeman-89141
12/10/2025, 10:55 AMgentle-policeman-89141
12/10/2025, 10:58 AMconst devTag = '[DEV]';
const devUserId = 'user_01JRMSSSGHQ3Z2ZF5CTMCJ14AK'; // My user id: user_01JRMSSSGHQ3Z2ZF5CTMCJ14AM
const text = outgoingEvent.payload?.text;
const target = event.userId;
console.log('[HOOK] outgoingEvent.target=', target, ' text=', text);
// If it's a dev-only message *and* we're NOT talking to the dev user...
if (typeof text === 'string' &&
text.startsWith(devTag) &&
target !== devUserId) {
// …then overwrite it with something benign (even an empty string works):
outgoingEvent.payload.text = '';
console.log('[HOOK] stripped DEV message for', target);
}
this was a before outgoing hook, that checks to see if the outgoing message is tagged at the start with '[DEV]', if so, intercepts outgoingEvent.payload.text and makes it not send the message basically (empty string)gentle-policeman-89141
12/10/2025, 10:59 AMbreezy-belgium-57865
12/10/2025, 11:34 AMgentle-policeman-89141
12/10/2025, 11:35 AMgentle-policeman-89141
12/10/2025, 11:36 AMbreezy-belgium-57865
12/10/2025, 11:36 AMgentle-policeman-89141
12/10/2025, 11:36 AMbreezy-belgium-57865
12/10/2025, 11:38 AMBefore Incoming check condition, if true then route to that empty nodegentle-policeman-89141
12/10/2025, 11:41 AM