⚡ FREE HOSTING GUIDE

Discord Bot Ko
Hamesha Online
Rakho Free Mein

Step-by-step guide — apne Discord bot ko bilkul free mein 24/7 host karo. Koi credit card nahi, koi paisa nahi.

⚠️
Zaroori baat: Koi browser-based panel directly bot host nahi kar sakta. Bot ko ek server platform pe run karna hoga (Railway, Render, ya Replit). Yeh guide tumhe pura process dikhati hai — code se le ke deployment tak.
Discord Bot Banao
1

Discord Developer Portal Kholao

discord.com/developers/applications pe jao → "New Application" click karo → naam do apne bot ko.

2

Bot Section Mein Jao

Left sidebar mein "Bot" pe click karo → "Add Bot" karo → "Reset Token" se apna TOKEN copy karo. Yeh token secret rakho!

3

Bot Ko Server Mein Invite Karo

"OAuth2" → "URL Generator" → scopes: bot → permissions select karo → generated URL se apne server mein invite karo.

Bot Ka Code Likho
Python
Node.js
PYTHON — bot.py
# pip install discord.py
import discord
from discord.ext import commands

# Bot setup
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix="!", intents=intents)

@bot.event
async def on_ready():
    print(f"Bot online: {bot.user}")

@bot.command()
async def hello(ctx):
    await ctx.send(f"Namaste {ctx.author.name}! 👋")

@bot.command()
async def ping(ctx):
    await ctx.send(f"🏓 Pong! {round(bot.latency * 1000)}ms")

# Apna TOKEN yahan dalo
bot.run("YOUR_BOT_TOKEN_HERE")
NODE.JS — index.js
// npm install discord.js
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
  intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildMessages,
    GatewayIntentBits.MessageContent
  ]
});

client.on('ready', () => {
  console.log(`Bot online: ${client.user.tag}`);
});

client.on('messageCreate', async (message) => {
  if (message.content === '!ping') {
    await message.reply('🏓 Pong!');
  }
  if (message.content === '!hello') {
    await message.reply(`Namaste ${message.author.username}! 👋`);
  }
});

// Apna TOKEN yahan dalo
client.login('YOUR_BOT_TOKEN_HERE');
Free Mein Host Karo
🚂
Railway.app
⭐ BEST OPTION
Sabse easy! GitHub se connect karo, TOKEN env variable mein dalo, deploy karo. Free tier mein $5/month credit milta hai jo akele bot ke liye kaafi hai.
railway.app →
🎯
Render.com
RECOMMENDED
Free tier pe background worker deploy karo. Bot hamesha online rahega. GitHub connect karo, environment variables set karo, done!
render.com →
☁️
Oracle Cloud Free
UNLIMITED FREE
Oracle ka Always Free tier — ek puri VM milti hai bilkul free mein, hamesha ke liye! Thoda technical hai lekin sabse reliable option hai long-term ke liye.
oracle.com →
🔁
Replit + UptimeRobot
EASY SETUP
Replit pe bot run karo + UptimeRobot se har 5 minute mein ping karo. Bot hamesha jaag ta rahega. Bilkul free!
replit.com →
Bot Ko 24/7 Online Rakho
🔄 UptimeRobot Method (Replit ke liye)
Agar Replit use kar rahe ho toh yeh code apne bot mein add karo. Yeh ek web server chalata hai. Phir UptimeRobot.com pe free account banao aur apni Replit URL ko monitor karo — har 5 min mein ping karega!
PYTHON — keep_alive.py
from flask import Flask
from threading import Thread

app = Flask('')

@app.route('/')
def home():
    return "Bot is ALIVE! 🤖"

def run():
    app.run(host='0.0.0.0', port=8080)

def keep_alive():
    t = Thread(target=run)
    t.start()

# Bot.py mein import karo:
# from keep_alive import keep_alive
# keep_alive()  ← bot.run() se pehle likhna
Deploy Files
requirements.txt (Python)
discord.py==2.3.2
flask==3.0.0
package.json (Node.js)
{
  "name": "my-discord-bot",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "start": "node index.js"
  },
  "dependencies": {
    "discord.js": "^14.0.0"
  }
}