A unified Discord-Web chat integration system that provides real-time bidirectional messaging between Discord and a web interface with rank systems and moderation tools.
- 🎮 Discord Integration - Seamless message relay between Discord and web
- 🌐 Web Interface - Modern React-based chat interface
- 👑 Rank System - Complete user ranking with custom colors and permissions
- 🛡️ Moderation Tools - Ban/unban users, clear messages, admin controls
- 🔥 Firebase Integration - Real-time message storage and sync
- 📱 Responsive Design - Works on desktop and mobile devices
- 🎨 Dark Theme - Beautiful dark UI matching Discord aesthetics
The system includes a complete rank hierarchy:
- OWNER - Full system control
- CO-OWNER - Administrative privileges
- DEVELOPER - Development team members
- HEAD-ADMIN - Senior administrators
- ADMIN - Standard administrators
- HEAD-MOD - Senior moderators
- MOD - Standard moderators
- MEMBER - Regular users
- GUEST - Temporary users
- Create a new repository on GitHub
- Push this code to your repository:
git init git add . git commit -m "Initial Chatlify Relay setup" git branch -M main git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git git push -u origin main
Go to your repository → Settings → Secrets and variables → Actions, then add:
Discord Secrets:
DISCORD_TOKEN- Your Discord bot tokenDISCORD_CHANNEL_ID- Discord channel ID for message relay
Firebase Secrets:
VITE_FIREBASE_API_KEY-AIzaSyD5vw97X6s1zFG4acJd5vFZ-gtW0JcMPaIVITE_FIREBASE_APP_ID-1:176144889050:web:93290107ab4ef56b67a1e3VITE_FIREBASE_PROJECT_ID-chatlify-databaseFIREBASE_DATABASE_URL-https://chatlify-database-default-rtdb.firebaseio.com
- Go to Repository → Settings → Pages
- Set Source to "GitHub Actions"
- The workflow will automatically deploy your site
- Go to Discord Developer Portal
- Create a new application and bot
- Get your bot token and add it to GitHub secrets
- Invite the bot to your server with appropriate permissions:
- Send Messages
- Read Message History
- Use Slash Commands
- Get the channel ID where you want the relay to work
- Frontend hosted on GitHub Pages
- Discord bot runs via GitHub Actions
- Best for permanent hosting
Use the embed.html file for simple embedding:
- Host the single HTML file anywhere
- Works with Google Sites, WordPress, etc.
- Direct Firebase integration
Deploy to platforms like Replit, Heroku, or Vercel for the full application.
Create a .env file with:
# Discord Configuration
DISCORD_TOKEN=your_discord_bot_token
DISCORD_CHANNEL_ID=your_discord_channel_id
# Firebase Configuration
VITE_FIREBASE_API_KEY=AIzaSyD5vw97X6s1zFG4acJd5vFZ-gtW0JcMPaI
VITE_FIREBASE_APP_ID=1:176144889050:web:93290107ab4ef56b67a1e3
VITE_FIREBASE_PROJECT_ID=chatlify-database
FIREBASE_DATABASE_URL=https://chatlify-database-default-rtdb.firebaseio.comAvailable slash commands:
/clear- Clear all chat messages (Admin only)/ban <username>- Ban a user from chat (Admin only)/unban <username>- Unban a user from chat (Admin only)
- Open the web interface
- Set your username (or keep the auto-generated guest name)
- Start chatting - messages sync between Discord and web in real-time
- Admins can use moderation tools via the Admin panel
├── client/ # React frontend
├── server/ # Express backend & Discord bot
├── shared/ # Shared types and utilities
├── embed.html # Standalone embeddable version
├── .github/workflows/ # GitHub Actions configuration
└── README.md # This file
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - feel free to use this project for your own Discord communities!