|
1 year ago | |
---|---|---|
kubernetes | 1 year ago | |
.drone.yml | 1 year ago | |
.gitignore | 1 year ago | |
Dockerfile | 1 year ago | |
README.md | 1 year ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago | |
main.go | 1 year ago | |
scryfall.go | 2 years ago | |
skaffold.yaml | 1 year ago |
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!
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
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