A Discord bot that allows server administrators to set, manage, and display sticky messages in channels. This bot provides commands for setting sticky messages, disabling or enabling them, and removing them when no longer needed.
- Set sticky messages (plain text or embedded) in any channel.
- Manage sticky messages with commands to enable, disable, and remove them.
- Display all active or inactive sticky messages within a server.
- Uses a JSON configuration file to save sticky messages persistently.
- Supports both standard and embedded sticky messages.
Command | Description | Permissions Required |
---|---|---|
C!help |
Shows the help message with a list of available commands. | None |
C!set_sticky |
Sets a sticky message in the current channel. | Manage Messages |
C!set_sticky_embed |
Sets a sticky message with an embedded format. | Manage Messages |
C!remove_sticky |
Removes the sticky message in the current channel. | Manage Messages |
C!get_sticky |
Displays all active and inactive sticky messages in the server. | Manage Messages |
C!sticky_disable |
Disables a sticky message without removing it. | Manage Messages |
C!sticky_enable |
Re-enables a disabled sticky message. | Manage Messages |
- Python 3.8+
discord.py
library (v2.4.0 or later)python-dotenv
for environment variable management
-
Clone the repository:
git clone https://github.com/StyingDev/Styings-Sticky-Bot.git cd Styings-sticky-bot
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the root directory of the project and add your Discord bot token:TOKEN=your_bot_token_here
-
Run the bot:
python main.py
The bot provides several commands to manage sticky messages. Only users with the Manage Messages
permission can use these commands.
To set a sticky message in the current channel:
C!set_sticky Your message here
To set a sticky message with an embed format:
C!set_sticky_embed Your embedded message here
To disable a sticky message in the current channel without removing it:
C!sticky_disable
To re-enable a disabled sticky message:
C!sticky_enable
To remove the sticky message from the current channel:
C!remove_sticky
To show all active and inactive sticky messages in your server:
C!get_sticky
Sticky messages are saved in a JSON configuration file (sticky_config.json
) located in the same directory as the bot script. This file stores the sticky messages for each channel and their statuses.
If you want to contribute to this project, please feel free to fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.