I know that someone (sorry, don't remember the author) has made a script that auto-nudge back a person who has nudged you... It called
NudgeBack.
I know it uses a DLL. That because, If I remember well, a simple code can't recognize a nudge (didn't remember well the explanation).
Hope I could help you...
If someone can add a info it would be very helpfull...