Skip to content

About

Devman Notifications Telegram Bot

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

Devman Notifications Telegram Bot

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.

Prerequisites

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)

Getting Started

Clone the repository:

git clone https://github.com/nucluster/devman-notifications-bot.git
  1. Change into the project directory:
cd devman-notifications-bot
  1. Create a virtual environment:
python -m venv venv
  1. Activate the virtual environment:
  • On Windows:
.\venv\Scripts\activate
  • On Unix or MacOS:
source venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. 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
  1. Run the script:
python bot.py

Configuration

  • DEVMAN_TOKEN: Your Devman API token.
  • TELEGRAM_TOKEN: Your Telegram bot token.
  • TELEGRAM_CHAT_ID: The chat ID where the bot will send notifications.

Logging

The script uses logging to record events. You can adjust the log level in the script for debugging or production use.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Devman Notifications Telegram Bot

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages