Hosting a Discord bot 24/7 on a $1/month NAT VPS
A guide explains how to run a Discord bot continuously on a low-cost NAT VPS rather than a free host that sleeps or restarts. Because bots open outbound connections to Discord, they don't need a dedicated IPv4 address, making a shared-IP server a cheap option. The author uses natbox.io's $1/month Nano plan as an example, noting they run the service and that the steps apply to any Debian or Ubuntu server. The walkthrough covers creating a Discord application and token, installing discord.py, storing the token securely, and using a systemd service to keep the bot running and restart it after crashes. It also recommends a firewall that allows only SSH, notes that outbound mail ports are blocked and Docker is unsupported, and mentions a free one-month trial.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in