This project is a Discord bot that provides end-of-life information for various software products
- Introduction
- Getting Started
- Usage
- Project Structure
- Dependencies
- Contributing
- License
- Acknowledgments
This project is a Discord bot that provides end-of-life information for various software products. It utilizes Disnake library for Discord interactions and an external API for retrieving details about product life cycles.
Before running the bot, ensure you have the following installed:
- Python 3.x
- Dependencies listed in
requirements.txt
-
Clone the repository:
git clone https://github.com/tarto-dev/end-of-life-bot.git cd end-of-life-bot
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.env
file with your Discord bot token:BOT_TOKEN=your_bot_token_here
To run the bot, execute the bot.py
script:
python bot.py
/get_products
: Retrieves all available products./product_details
: Gets end-of-life details for all cycles of a given product./product_cycle
: Retrieves details of a single cycle for a given product.
api.py
: Contains the EOLApi class for interacting with the end-of-life API.bot.py
: Discord bot script with slash commands using Disnake library.main.py
: Functions for interacting with the end-of-life API.config.py
: Loads Discord bot token from the .env file.requirements.txt
: Lists project dependencies.
- Disnake
- Requests
- Python-dotenv
Check requirements.txt
for specific versions.
Contributions are welcome! Please follow our contribution guidelines.
This project is licensed under the GNU General Public License v3.0.
- Special thanks to Disnake for the Discord library.
- API data provided by End-of-life.date.