This Python script uses the Devman API to monitor the status of code submissions and sends notifications to a Telegram chat when a task is reviewed.
Before running the script, make sure you have the following:
- Python 3.x installed
- Pip package manager installed
- A Telegram bot token (obtainable from BotFather on Telegram)
- A Devman API token (available on the Devman website)
Clone the repository:
git clone https://github.com/nucluster/devman-notifications-bot.git- Change into the project directory:
cd devman-notifications-bot- Create a virtual environment:
python -m venv venv- Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate- On Unix or MacOS:
source venv/bin/activate- Install the required dependencies:
pip install -r requirements.txt- Create a .env file in the project root and add the following information:
DEVMAN_TOKEN=your_devman_api_token TELEGRAM_TOKEN=your_telegram_bot_token TELEGRAM_CHAT_ID=your_telegram_chat_id- Run the script:
python bot.py- DEVMAN_TOKEN: Your Devman API token.
- TELEGRAM_TOKEN: Your Telegram bot token.
- TELEGRAM_CHAT_ID: The chat ID where the bot will send notifications.
The script uses logging to record events. You can adjust the log level in the script for debugging or production use.
This project is licensed under the MIT License - see the LICENSE file for details.