Giter Site home page Giter Site logo

getlucky777 / homework_bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

Бот, работающий с Telegram API для контроля состояния домашнего задания

Procfile 0.08% Python 99.78% Shell 0.14%
python requests telegram-bot telegram-userbot

homework_bot's Introduction

Telegram бот для контроля статуса домашнего задания

Описание

Данный бот предназначен для контроля статуса домашего задания, отправленного на проверку. Периодически бот делает запросы к API Яндекс.Практикум, в случае изменения статуса работы присылает уведомление в Telegram.

Дополнительно реализован контроль ошибок, в случае критических ошибок бот присылает уведомление об этом в Telegram.

Используемые технологии

  • Python 3.9.10
  • Python-Telegram-Bot 13.7

Запуск проекта

Клонировать репозиторий, перейти в новую директорию:

git clone https://github.com/GetLucky777/homework_bot

Инициализировать виртуальное окружение:

python -m venv venv

Активировать виртуальное окружение:

source venv/Scripts/activate

Установить зависимости проекта:

pip install -r requirements.txt

Создать файл .env, добавить токены Телеграм. Яндекс.Практикум, Телеграм Chat ID Запустить бота:

python homework.py

homework_bot's People

Contributors

getlucky777 avatar

Watchers

 avatar

homework_bot's Issues

fix: fixed type of environment variable TELEGRAM_CHAT_ID

By assignment, all secret keys must be obtained from environment variables. All environment variables are string variables. The program developer can also check the length of the key when verifying the correctness of the key. The length for the int type is not defined. There is no reason to use int type for TELEGRAM_CHAT_ID key.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.