✨🛠️ VanityDc 🛠️✨
VanityDc is a sleek Python FastAPI tool that generates permanent Discord invite links automatically. Forget expired links – VanityDc keeps your invites alive!
- 🔹 Automatically fetches a text channel from your Discord server.
- 🔹 Creates a permanent invite link using your bot token.
- 🔹 Returns the invite as JSON for frontend use.
- 🔹 Frontend can auto-redirect visitors to the invite.
- 🔹 Self-hosted & free.
- 🔹 More reliable than Discord’s built-in vanity links.
- Python 3.10+
- FastAPI
- aiohttp
- Jinja2
- A Discord bot token
- A Discord server ID (guild ID)
1️⃣ Clone the repository:
git clone https://github.com/pygod139/VanityDc.git
cd VanityDc2️⃣ Create a virtual environment and activate it:
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate3️⃣ Install dependencies:
pip install -r requirements.txt4️⃣ Configure config.json:
{
"token": "YOUR_BOT_TOKEN",
"guild": "YOUR_GUILD_ID"
}Start the FastAPI server:
uvicorn app:app --reload- Visit
http://127.0.0.1:8000/for the frontend page. - Visit
http://127.0.0.1:8000/invto get the invite link as JSON.
Frontend auto-redirects visitors to the generated invite.
Open-source! Fork, modify, or use freely. Giving credit is appreciated.
MIT License