First:
Change the \"on 50:text:-setgreeting :#:\" To: \"on :text:-setgreeting *:#:\"
Otherwise It wont let you load a greeting.
Second, possibly update It to have a toggle on and off setting, It can be annoying to have the same greeting in diffrent rooms, eathier an off switch for the specific room, or diffrent greetings per room?