Skip to content

Instantly share code, notes, and snippets.

View Tkael's full-sized avatar

Brian Wilson Tkael

View GitHub Profile
@Tkael
Tkael / EDDI-message-received.cottle
Created December 23, 2022 07:17 — forked from slippycheeze/EDDI-message-received.cottle
EDDI message received script update
{_ Is this the same sender or message as the last message we've received? }
{_ If so then the appropriate value(s) below shall be set to 'true' _}
{set duplicate to [
"from": event.from = state.eddi_context_message_name,
"message": event.message = state.eddi_context_message_content,
]}
{_ Context _}
{SetState('eddi_context_last_subject', 'message')}
{SetState('eddi_context_last_action', 'receive')}