Code for bot and reminder thread.