You could give Peace and Protection a try with an add-on called MENTION.PPA
What you wants is coded in that add-on, specifically the action you describe on line 107 (for the on TEXT event)
https://github.com/peace-and-protec...f836eec9ddc677e90c02fc7/MENTION.PPA#L107