← All posts
2026-09-10·8 min read

How to Make a Discord Bot in 2026 (Beginner Guide)

Learn how to make a Discord bot from scratch in 2026 — then host it for free 24/7 on Raven Host. Create a bot, write a command, deploy it online.

Want to build your own Discord bot? It's easier than you think. Here's the full beginner path — create the bot on Discord, write a command, and host it free 24/7 so it's always online.

Step 1: Create the application. Head to the Discord Developer Portal, click New Application, name it, then open the Bot tab and click Add Bot. Copy your bot token — this is the key your code uses to log in.

Step 2: Invite your bot. In the OAuth2 > URL Generator section, pick the 'bot' scope, choose permissions like Send Messages and Read Message History, and open the generated link to add it to your server.

Step 3: Write a command. In Node.js with discord.js, a ping command is just a few lines: create a client, log in with your token, and reply to a /ping slash command.

Step 4: Host it free. This is where Raven Host shines. Create a free account, pick Node.js, name your server and deploy. Paste your bot code (or git-clone it) and your bot is online 24/7 in about a minute — with a real IP:port.

Step 5: Keep it running. Your free server never sleeps, so your bot stays online around the clock. When your bot grows, upgrade to a paid plan for more CPU, RAM and disk.

That's it — you made a Discord bot and it's live 24/7 for free.

Keep reading

Deploy your server free

Create a free account and get online in under a minute. No credit card required.