Fixed issue (hard-coded room_id)
Allow dual mode: run from the command line just like the update hook, or if no arguments are given then run as a hook script