This seems like it was ripped out of something larger. I am not saying you ripped this from someone it is just you have things missing. you have it enabling a group but you don't use it as well you are missing brackets. Just seems odd with the use of wildcards for the triggers.
the use of amsg can get you banned from some servers.

It would be better to place this under one text event instead of 2, but what ever to each their own.