I'm having trouble keeping the discord bot alive

I followed the Beau Carnes youtube video to make a discord bot that encourages by sending encouraging quotes. I made a new monitor on Uptime Robot after deleting the initial one cause I thought it may be causing some problems with not making the bot alive. But after I have linked the bot and the monitor, I am even more confused because my bot doesn’t get on, and neither my code works. So to sum it all up, I have got 2 problems

  1. My code runs well but then soon after it runs showing no error in the terminal, the code stops
  2. My uptime Robot monitor doesn’t make my robot live or smth, Help me!
    Please let me know if I should provide with any other links