This tutorial shows how to deploy your Discord bot on Replit so it runs continuously in the cloud, independent of your local machine or browser session.
Notes:
- You need a Replit account and a working Discord bot project. If you haven't built one yet, see How to Create a Discord Bot on Replit first.
- Deployments require a paid Replit plan. Confirm your account has Deployments access before starting.
- Your bot token should already be saved as a Secret in your project with the key TOKEN. If it isn't, add it under the Secrets tab before deploying.
- Deployments are now called Publishing.
- Sign in at replit.com and open your Discord bot project from the dashboard.
- In your workspace, click New Tab and select Publishing (previously called Deployments). The Publishing panel opens.
- Click Adjust Settings to choose a deployment type.
- Autoscale for bots with light or unpredictable traffic
- Reserved VM for a dedicated, always-on environment.
- Click Publish to activate your Discord bot. Replit builds your project and starts the deployment. This typically takes one to two minutes.
- When deployment completes, check for a green status indicator in the Published panel.
- Open Discord and send your bot a test message - for example, /help or /reminders - to confirm it's live and responding.
.gif)
