[NODE_BOT] Create function tryFn to catch errors