-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
# Print-bot | ||
# print-vkbot | ||
|
||
## ВКонтакте бот для отправки файлов на печать на принтер | ||
Бот ВКонтакте отправки заданий на печать бесплатного принтера профкома студентов физического факультета МГУ | ||
|
||
Продовый бот: http://vk.me/profcomff_print_bot | ||
|
||
Тестовый бот: https://vk.com/profcomff_print_test_bot | ||
* [Продовый vk-бот](https://vk.me/profcomff_print_bot) | ||
* [Тестовый vk-бот](https://vk.me/profcomff_print_test_bot) | ||
|
||
## Ключевые особенности | ||
|
||
* Возможность отправлять файлы pdf на сервер печати | ||
* Возможность проверки пользователя | ||
* Валидация принимаемых типов сообщений | ||
* Красивые клавиатуры | ||
Другое: | ||
* [Печать через сайт](https://www.profcomff.com/work/obshkom/print) | ||
* [Telegram-Бот](https://t.me/profcomff_print_bot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import logging | ||
import time | ||
from threading import Thread | ||
|
||
import src.chat as chat | ||
|
||
logging.getLogger("httpx").setLevel(logging.WARNING) | ||
|
||
logging.basicConfig( | ||
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", | ||
level=logging.INFO, | ||
datefmt="%Y-%m-%d %H:%M:%S", | ||
) | ||
|
||
if __name__ == '__main__': | ||
logging.basicConfig( | ||
format='%(asctime)s %(levelname)-8s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S' | ||
) | ||
|
||
if __name__ == '__main__': | ||
chat_thread = Thread(target=chat.chat_loop) | ||
chat_thread.start() | ||
|
||
time.sleep(1) | ||
logging.info("=== BOT START ===") | ||
|
||
chat_thread.join() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters