- Show saved words
- Add words
- Scheduled notification to a user with some word from the vocabulary
- Get info about user settings (interval, last notification, number of words, number of daily words)
- Education plan - tracks daily words, updatable
- Set number of daily words
-
Create
.envfile with the following environment variables:- DB_USERNAME and POSTGRES_USER should be equal
- DB_PASSWORD and POSTGRES_PASSWORD should be equal
- OWNER_ID - your telegram id
- BOT_TOKEN - bot API token obtained from BotFather
-
./mvnw clean install -DskipTests -
docker build -t system205/english-bot:latest -
docker-compose up -
Alternatively with Maven plugin:
- Run
./mvnw -DskipTests=true spring-boot:build-image - Set up
DOCKER_LOGINandDOCKER_PASSWORDas env. variables - So, you can specify
-Dspring-boot.build-image.publish=trueto publish the image
- Run
🧾 Properties
- bot.scheduling.rate in milliseconds - how often to check for available notifications to be sent
- bot.scheduling.default-interval in minutes - how often to send notification to a user