Yes, remove the @ prefix from the event.

Change:

on @*:text:*:#: {

to:

on *:text:*:#: {