Skip to content

robotomize/ohmytime-bot

Repository files navigation

Ohmytime-bot

Get the local time in the selected location. Often you need to quickly see the local time in the city. This is a telegram bot that solves this problem. Just send him the name of the city or location and he will send you the local time

Try Ohmytime-bot

Usage

Install

Docker

docker pull robotomize/ohmytime-bot:latest
# or use docker compose
docker-compose up

Local

# create index internal/index/assets
go generate ./...

# set env variables

# search index generated to ./internal/index/assets/cities.idx
export PATH_TO_INDEX=PATH_TO_INDEX_FOLDER
# your telegram token
export TELEGRAM_TOKEN=Your_TELEGRAM_TOKEN

go run ./cmd/ohmytime-bot

Dependencies

Technical

The entire search index has already been created and copied into a docker container. The index was created based on public data on locations and time zones. In the internal/index folder you can find the raw data and the search index generator.

License

Cribe is under the Apache 2.0 license. See the LICENSE file for details.

Contact

Telegram: @robotomize