@stappabot telegram bot
Find a file
Hamcha e967a474cf
All checks were successful
continuous-integration/drone/push Build is passing
Add kubernetes files
2020-01-30 17:04:08 +01:00
kubernetes Add kubernetes files 2020-01-30 17:04:08 +01:00
.drone.yml Use env, add dockerfile/CI 2020-01-30 17:04:07 +01:00
.gitignore Add kubernetes files 2020-01-30 17:04:08 +01:00
Dockerfile Use env, add dockerfile/CI 2020-01-30 17:04:07 +01:00
go.mod Use env, add dockerfile/CI 2020-01-30 17:04:07 +01:00
go.sum Use env, add dockerfile/CI 2020-01-30 17:04:07 +01:00
main.go Set default bind 2020-01-30 17:04:08 +01:00
README.md Add kubernetes files 2020-01-30 17:04:08 +01:00
scryfall.go Refactor A LOT OF STUFF 2018-12-13 13:55:39 +01:00
skaffold.yaml Add kubernetes files 2020-01-30 17:04:08 +01:00

stappabot

Run on minikube

Running in minikube doesn't really work right now, but you can still try if the docker container builds and deploys successfully.

Make sure the bots namespace exists!

Requirements

Create a file in kubernetes/overlays/development called envfile with these values:

STAPPA_TOKEN=telegram-bot-token
STAPPA_WEBHOOK=https://telegram.webhook/endpoint
STAPPA_PATH=endpoint

Run skaffold dev

Run locally

Install stappabot

go get git.fromouter.space/Hamcha/stappabot

Set these env vars:

STAPPA_TOKEN=telegram-bot-token
STAPPA_BIND=:5749
STAPPA_WEBHOOK=https://telegram.webhook/endpoint
STAPPA_PATH=endpoint
STAPPA_MAXREQUEST=5

Run:

stappabot