1
0
Fork 0
Chat-robot Telegram for parsing homeworks by subject name, grade and number of the week
Go to file
Arsen Mirzaev Tatyano-Muradovich b56662d6bb added the funny story of development 2025-03-16 18:07:25 +07:00
examples/systemd fixed service 2025-03-06 05:51:16 +07:00
mirzaev/parser_from_interneturok/system shuffled 2025-03-08 22:32:01 +07:00
.gitignore Initial commit 2025-02-25 22:34:55 +07:00
LICENSE Initial commit 2025-02-25 22:34:55 +07:00
README.md added the funny story of development 2025-03-16 18:07:25 +07:00
composer.json my work is done 2025-03-06 05:31:11 +07:00
install.sh Initial commit 2025-02-25 22:34:55 +07:00

parser_from_interneturok

Chat-robot Telegram for parsing homeworks by subject name, grade and number of the week

Funny story of development

The customer of this project refused to pay the second half of the payment for the work and wanted to steal my code.

I managed to delete all the code from the server, then i changed passwords on all 40 accounts that were planned to be used in this chat-robot.
Thus i destroyed the entire mini-business of this customer.

Dependencies

  1. PHP 8.4
  2. Composer (php package manager)
  3. MINIMAL (PHP framework)
  4. Zanzara (Telegram framework + ReactPHP)
  5. Baza (binary database)
  6. NGINX (web server) (can be replaced)
  7. SystemD (service manager) (can be replaced)

You can find other dependencies in the file /composer.json

Installation

SystemD (or any alternative you like)

You can copy an example of systemd file from here: /examples/systemd/ parser_from_interneturok-telegram.service

Execute: sudo cp parser_from_interneturok-telegram.service /etc/systemd/system/ parser_from_interneturok-telegram.service && sudo chmod +x /etc/systemd/system/ parser_from_interneturok-telegram.service

before you execute the command think about what it does and whether the paths are specified correctly
the configuration file is very simple and you can remake it for any alternative to SystemD that you like

InternetUrok accounts

Fill in the file: /mirzaev/parser_from_interneturok/system/storage/accounts.csv

Format: "mail password" (separated by 1 space symbol)

mail password
mail password
mail password

Authorized Telegram accounts

Fill in the file: /mirzaev/parser_from_interneturok/system/settings/accounts.php

return [
    1053489457, // Arsen Mirzaev Tatyano-Muradovich @redloser
]

You can get the telegram account identifier by @RawDataBot

Chat-robot Telegram token

Fill in the file: /mirzaev/parser_from_interneturok/system/settings/telegram.php
You can get the chat-robot telegram token by @BotFather