How to host a Discord bot for free
Create a Discord bot, run it on FreeBot without a card and invite it to your bot, step by step.
What you need
- A free FreeBot account (no card needed).
- A Discord account and a server where you can add bots.
1. Create the bot in Discord
- Open the Discord Developer Portal and click New Application. Give it a name.
- Open Bot in the menu and click Reset Token. Copy the token and keep it secret.
- Under Privileged Gateway Intents, turn on Server Members Intent and Message Content Intent if your bot reads messages or welcomes members.
2. Create the bot on FreeBot
- Sign in and click Get my free bot.
- Pick Discord bot (Node.js) or Discord bot (Python).
- Open Settings, find
DISCORD_TOKENunder Variables and paste your token. Save. - Press Start. The logs show
Installing packages...and thenOnline as YourBot.
3. Invite the bot to your Discord server
- In the Developer Portal, open OAuth2, then URL Generator.
- Tick bot and applications.commands, choose the permissions your bot needs and open the link at the bottom.
- Pick your server and confirm. Type
/pingand the bot answers.
Keep it online
A free bot runs as long as you renew it once a day with a short ad. For a bot that is online all the time without ads, choose Spark or Nova.