Couple things to point out. In the first on text event, you have two sets of commands in different brackets ({ }). Also instead of all of those event, combine those in one. Using if/elseif statements. Also, there is no need for a slash in the msg part. I know I am nitpicking, but it's just me. I know that this is your first one, but it isn't that bad. Probably the last part I would recommend is either storing them in a hash table or INI file, because with that, you can identify which term is valid, with the use of evaluation brackets.
Thanks for the feedback, will improve my scripts accordingly :).