A powerful Discord bot that creates persistent sticky messages with dynamic content including music bot availability tracking.
- Sticky Messages: Auto-reposting messages that stay at the bottom of channels
- Music Bot Tracking: Track and display available music bots not in voice channels
- Dynamic Variables: Server name, time, date, member count, and more
- Role-Based Exclusions: Exclude specific bots from tracking with roles
- Rich Embeds: Beautiful embed support with custom colors and footers
- Real-Time Updates: Automatic updates when bot status changes
- Simple Commands: Easy-to-use slash commands
- Node.js 16.9.0 or higher
- Discord Bot Token
- Discord Application with Bot permissions
-
Clone the repository
git clone https://github.com/ItsMeRioooo/Sticky-Discord-Bot.git cd Sticky-Discord-Bot -
Install dependencies
npm install
-
Create environment file
cp .env.example .env
-
Add your bot token to
.envDISCORD_TOKEN=your_bot_token_here
-
Start the bot
npm start
/sticky- Set a sticky message in a channel/unsticky- Remove a sticky message from a channel/stickies- List all sticky messages in the server/help- Show help information/cleanup- Force cleanup ALL bot messages (Admin only)
/addbot- Add a bot to the tracking list/removebot- Remove a bot from the tracking list/bots- List all tracked bots/setrole- Set role to exclude bots from VC tracking/vcbots- Show bots currently in voice channels
Use these variables in your sticky messages:
| Variable | Description |
|---|---|
{server_name} |
Server name |
{channel_name} |
Channel name |
{member_count} |
Server member count |
{time} |
Current time |
{date} |
Current date |
{datetime} |
Date and time |
{not in a vc} |
List of available music bots |
{not_in_vc} |
Same as above (alternative) |
{bots_not_in_vc} |
Same as above (alternative) |
/sticky content:Welcome to {server_name}! We have {member_count} members.
/sticky content:{not in a vc}
This will display:
**Available Music Bots:**
@MusicBot1 (m!play)
@MusicBot2 (r!play)
Or when no bots are available:
**There are currently no available Music Bots. Please wait for one to become available!**
Your bot needs these permissions:
- Send Messages
- Manage Messages
- Embed Links
- Read Message History
- Use Slash Commands
- View Channels
├── index.js # Main bot file
├── package.json # Dependencies
├── .env # Environment variables (create this)
├── .gitignore # Git ignore file
├── bot-config.json # Bot configuration (auto-generated)
├── bot-info.json # Tracked bots list (auto-generated)
├── sticky-data.json # Sticky messages data (auto-generated)
└── README.md # This file
The bot automatically creates configuration files:
bot-config.json- Stores VC exclusion rolebot-info.json- Stores tracked bot liststicky-data.json- Stores sticky message data
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- Use ES6+ features
- Follow existing code patterns
- Keep functions small and focused
- Add error handling
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you need help or have questions:
- Open an issue on GitHub
- Check the help command:
/help
- Web dashboard
- Custom prefix support
- Advanced scheduling
- Multi-server management
- Database integration
Made with ❤️ by ItsMeRioooo