How to keep discord bot online 24/7?

Discord bot’s code.

Can pm2 host a website globally?!

Maybe you could use ngrok or localtunnel to port forward your localhost port to a domain. And pm2 will keep it online forever.

I just it host it on my phone 24/7 lol. I can’t keep my computer on for long as electricity bills will surge.

Won’t that happen to your phone, too?

Nope, my phone isn’t even close to being hot, unless you are performing some heavy tasks. The bot is only in one server with 300 members and it runs fine.

1 Like

I see.

1 Like

I recommend using heroku. It works better than self-hosting.