A Discord bot specifically designed to store and manage Linux commands or Bug Bounty commands. It supports dynamic command management, error handling, and useful utility functions for easy command handling.
- Dynamic Command Management: Easily add, delete, and display custom commands.
- Logging: Logs all activities and errors for debugging and monitoring.
- Permissions Handling: Ensures that only authorized users can execute specific commands.
- Utility Functions: Includes features like chat clearing and a list of all available commands.
- Python 3.8+
- Discord.py library installed
-
Clone the repository:
git clone https://github.com/yourusername/bugbounty-linux-command-bot.git cd bugbounty-linux-command-bot
-
Install the required dependencies:
pip install discord.py
-
Create a
commands.json
file in the project directory: Create a file namedcommands.json
in the root directory of your project with the following initial content:{ "example_command": "This is the content of the example command" }
This file will store all the commands you add to the bot. When you add new commands using the bot, they will be saved in this file in a similar format.
-
Set your bot's token: Open the bot's code file and replace the placeholder
'YOUR_BOT_TOKEN'
with your actual Discord bot token:bot.run('YOUR_BOT_TOKEN')
- !addcommand
<alias>
<content>
: Add a new command with the given alias and content. - !delcommand
<alias>
: Delete a command with the specified alias. - !show
<alias>
: Display the content of a specific command. - !clear: Clear all messages in the current chat channel.
- !commands: List all available custom commands.
- If you use a non-existent command, the bot will notify you.
- Unauthorized users attempting to use protected commands will receive a permission error.
- Unexpected errors are logged to the daily log file for easy troubleshooting.
Logs are automatically stored in the logs
directory with filenames in the format bot_YYYY-MM-DD.log
, making it easy to track the bot's activities.
Contributions are welcome! Feel free to fork the repository, submit a pull request, or open an issue if you have any suggestions or find bugs.
This project is licensed under the MIT License. See the LICENSE file for details.
For issues or questions, open an issue on GitHub or contact the project maintainer.