line 12 i think u have to remove one "}" and add one at the end of event
Suggestion: !greetoff & !greeton can be in a same condition