No description
- Go 95.6%
- Dockerfile 4.4%
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| README.md | ||
hip.hosting availability parser bot
hip.hosting has a very narrow window of available locations, so this bot tries to solve that problem.
The program makes an API request to https://api.hip.hosting/hiplet/rpc/new-options every minute and parses the JSON response to get available regions. If a user issued /subsribe to the bot, they will stop getting updates whenever there is at least 1 region available to prevent spam. If there were no available regions for at least 1 request then the next one that has them will also send an update to all subscribed users.
Don't forget to create a .env file containing the bot token if you want to set this bot up for yourself.
TG_BOT_TOKEN=0108010801:EXAMPLE_TOKEN
TODO:
- Database support to store the account subscription status
- Add a command to get the current availability status
- Implement command hints for the Telegram bot
Refine update message handling (implement deletion of obsolete info)