https://github.com/romanthekat/kat-supply-bot
Supply telegram bot - registers supply 'orders'
https://github.com/romanthekat/kat-supply-bot
boltdb docker golang storm telegram-bot
Last synced: 5 months ago
JSON representation
Supply telegram bot - registers supply 'orders'
- Host: GitHub
- URL: https://github.com/romanthekat/kat-supply-bot
- Owner: romanthekat
- License: apache-2.0
- Created: 2017-02-01T17:23:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T17:34:11.000Z (over 8 years ago)
- Last Synced: 2025-04-02T05:47:30.412Z (about 1 year ago)
- Topics: boltdb, docker, golang, storm, telegram-bot
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KatSupplyBot
Supply telegram bot - registers supply 'requests'
### How to use:
- 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`
- to use docker container
- call `./create_docker_image.sh` to create image using `Dockerfile`,
and tag it with `katsupplybot`
- call `./run_docker_container.sh` to create and run docker container named `KatSupplyBot`
- 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
- 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`
### Current commands:
#### For all users:
- `/add` - Add supply request, for instance "/add купить лимон"
- `/list` - Show all current requests
- `/close` - Close request
#### Admins only:
- `/shutdown` - Shutdown bot instance