Supply telegram bot - registers supply 'requests'
- create
token
file with bot token (can be obtained from 'Bot father') - optional - create
admins
file, with admins usernames (each one on different line) - to use local app exemplar
- call
./launch.sh
- call
- to use docker container
- call
./create_docker_image.sh
to create image usingDockerfile
, and tag it withkatsupplybot
- call
./run_docker_container.sh
to create and run docker container namedKatSupplyBot
- within that script db file
KatSupplyBot.db
is mapped to host filesystem (in current directory) so that the results of the work are accessible outside the container
- within that script db file
- p.s.
- if
KatSupplyBot
container exists, it can be started again by calling./start_docker_container.sh
- you can watch logs by calling
docker logs KatSupplyBot
- if
- call
/add
- Add supply request, for instance "/add купить лимон"/list
- Show all current requests/close
- Close request
/shutdown
- Shutdown bot instance