Originally Posted By: maroon
when you're having trouble getting your code working, it's often very helpful to salt your code with some echo messages sent to status window or to a @test window. The message should contain $scriptline so you know which of them is being displayed, as well as preventing an error if all you're doing is printing an empty variable or a variable that begins with a hyphen.

This should let you see whether your $event is being triggered when it should be, or whether the problem is that your if-statements aren't using correct logic.

something like:
echo -s $scriptline key: $msgtags(msg-id).key 1-: $1-



Decided to switch to node.js and make something there that works for now! Thanks, though