turnik-bot

command module
v0.0.0-...-02dd594 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2021 License: MIT Imports: 9 Imported by: 0

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, or docker-compose.yml.

Envars
# 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

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL