Skip to content

Gasoid/regular-go-bot

Repository files navigation

CI

Command list

  • help
  • estimation
  • changelog
  • currency
  • joke
  • holiday
  • weather
  • chat_info
  • random
  • b64encode
  • b64decode

Settings / Env variables

You have to provide 3 env variables:

  • TOKEN - telegram token
  • GIST_LOGS_URL - gist url
  • OWM_API_KEY - api key for weather command

How it works

Screenshot 2022-07-17 at 21 12 16

Metrics

Prometheus metrics are exposed on 8080 port: http://localhost:8080/metrics

curl http://localhost:8080/metrics

Health endpoint

url: http://localhost:8080/health

curl http://localhost:8080/health

Compilation routine

go mod download
go build ./

or

docker build -t bot:test ./

License

This program is published under the terms of the MIT License. Please check the LICENSE file for more details.