VanityDc
VanityDc is a sleek Python FastAPI tool that generates permanent Discord invite links automatically. Forget expired links – VanityDc keeps your invites alive!
Install / Use
/learn @pygod7/VanityDcREADME
✨🛠️ VanityDc 🛠️✨
VanityDc is a sleek Python FastAPI tool that generates permanent Discord invite links automatically. Forget expired links – VanityDc keeps your invites alive!
🚀 Features
- 🔹 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.
📦 Requirements
- Python 3.10+
- FastAPI
- aiohttp
- Jinja2
- A Discord bot token
- A Discord server ID (guild ID)
⚡ Installation
1️⃣ Clone the repository:
git clone https://github.com/pygod139/VanityDc.git
cd VanityDc
2️⃣ Create a virtual environment and activate it:
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
3️⃣ Install dependencies:
pip install -r requirements.txt
4️⃣ Configure config.json:
{
"token": "YOUR_BOT_TOKEN",
"guild": "YOUR_GUILD_ID"
}
⚠️ Warning: Never push your real bot token to a public repo!
🎯 Usage
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.
🤝 Contributing
Open-source! Fork, modify, or use freely. Giving credit is appreciated.
📜 License
MIT License
⚠️ Disclaimer: Never share your bot token publicly. Use environment variables or private hosting for production.
