Just a simple project to send notifications to a telegram group from nekoBT feed.
Since the tool is written in Go, it should be rather trivial.
- Ensure that you have Go installed on your system. You can download it from here. At least Go 1.23.1 is required.
- Clone this repository and switch to the project's root directory
- Build the project:
CGO_ENABLED=0 go build -ldflags="-s -w" .And that will produce an nekobt_notification binary in the current directory.
If you would rather cross compile, set the GOOS and GOARCH environment variables accordingly. For example, to build for Windows on a Linux system:
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" .You can deploy the tool using Docker. Dockerfile is provided in the repository. To build the image, run:
docker build -t nekobt_notification:latest .docker run -it nekobt_notification:latestOn linux docker_run.sh can be used for auto run. (This also mount cache file.)
Both config.json and cache.json have to be created, there is example files. With docker_run.sh only config have to be created.
The config file is config.json
proxies: proxy for requesting rss feed, could be needed (ie."us": "http://proxy.example.com:8080/")chat_id: ID for the grouptopic_id: topic ID if Topics is enabled in the groupbot_token: token for the botsleep: time to sleep between each request (in second)rss_feed: url for the feed ie. https://nekobt.to/api/v1/torrents/search?group_id=7313765950000
Items that was already done is in cache.json. So can be set where to start. If cache.json not mounted with docker, then before ever new run have to update it.