https://github.com/robotomize/ohmytime-bot
Get the local time in the selected location
https://github.com/robotomize/ohmytime-bot
bot local localtime telegram telegrambot time
Last synced: about 2 months ago
JSON representation
Get the local time in the selected location
- Host: GitHub
- URL: https://github.com/robotomize/ohmytime-bot
- Owner: robotomize
- License: apache-2.0
- Created: 2021-10-19T16:23:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-08T11:24:41.000Z (11 months ago)
- Last Synced: 2025-02-08T14:15:58.516Z (4 months ago)
- Topics: bot, local, localtime, telegram, telegrambot, time
- Language: Go
- Homepage: https://t.me/ohmytime_bot
- Size: 56.5 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 timeTry [Ohmytime-bot](https://t.me/ohmytime_bot)
## Usage
#### Install
### Docker
```bash
docker pull robotomize/ohmytime-bot:latest
# or use docker compose
docker-compose up
```### Local
```bash
# 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_TOKENgo run ./cmd/ohmytime-bot
```## Dependencies
* [Text search bleve](https://github.com/blevesearch/bleve)
* [Telegram Bot api](https://github.com/go-telegram-bot-api/telegram-bot-api)## 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](LICENSE) file for details.## Contact
Telegram: [@robotomize](https://t.me/robotomize)