smknhd-tech / english-class-notify

オンライン英会話レッスンを賢く素早く予約したい人のためのツール
1 stars 0 forks source link
dmm

english-class-notify

notify.py checks tutor's scheduale and notify you via LINE Notify.

VS.

Requirement

Usage

$ poetry run python notify.py [-d day] [-c configurationfile]

Example

$ poetry run python notify.py today ../config.txt

Via Docker

$ make start
$ docker-compose run app today config.txt

Test

Via Docker

$ docker run --env LINE_NOTIFY_TOKEN_TEST=anylinenotifytoken --rm --entrypoint=pytest notifyimage:latest -v

Via Terminal

$ export LINE_NOTIFY_TOKEN_TEST=anylinenotifytoken
$ pytest -v

Config File Example

[SITE INFO]
URL = XXXXX

[LINE NOTIFY]
TOKEN = XXXXX
SUBMIT_MESSAGE = XXXXX

[USER INFO]
NAME=XXXX

[TUTORS]
# name id
tutor1 = 12345
tutor2 = 54321

Tips