Skip to content

The bot is intended for the channel

License

Notifications You must be signed in to change notification settings

Gasoid/regular-go-bot

Repository files navigation

CI

Settings / Env variables

You have to provide 3 env variables:

  • BOT_TOKEN - telegram token
  • OPENAI_TOKEN - chatgpt token
  • 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.