added logic for messaging in only one specific hour