Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fullpipe/turnik-bot
Bot that make you stronger.
https://github.com/fullpipe/turnik-bot
Last synced: about 4 hours ago
JSON representation
Bot that make you stronger.
- Host: GitHub
- URL: https://github.com/fullpipe/turnik-bot
- Owner: fullpipe
- License: mit
- Created: 2020-02-11T15:49:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T16:58:24.000Z (over 3 years ago)
- Last Synced: 2024-06-19T17:59:26.855Z (5 months ago)
- Language: Go
- Homepage: http://t.me/wikium_turnik_bot
- Size: 11.4 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Turnik bot
You need horizontal bar (turnik) in your office.
And your need subscribe on bot. Its possible
to launch your own bot. Or use mine.## Deployment
See [deployment.yml](deployment.yml), or [docker-compose.yml](docker-compose.yml).
### Envars
```yaml
# Mysql
DB_TYPE: mysql
DB_URI: "root:123@tcp(db)/turnik?charset=utf8mb4&parseTime=True"
TELEGRAM_TOKEN: YOUTOKETFROMBOTFATHER
TELEGRAM_URL: https://api.telegram.org #or your proxy http://IP:30012 @see https://github.com/fullpipe/tele-proxy# sqlite
DB_TYPE: sqlite3 # mount volume at /app/data
TELEGRAM_TOKEN: YOUTOKETFROMBOTFATHER
TELEGRAM_URL: https://api.telegram.org #or your proxy http://IP:30012 @see https://github.com/fullpipe/tele-proxy
```## Local development
```sh
DB_TYPE=sqlite3 DB_URI=data/test.db TELEGRAM_TOKEN=YOUTOKETFROMBOTFATHER TELEGRAM_URL=https://api.telegram.org justrun -c 'go run .' .
```## TODO
- time zone handling
- add translations
- move motivations to extenal json|yaml file
- add more randomness
- add more motivations