Skip to content

varyg1001/nekobt_notification

Repository files navigation

nekobt_notification

Just a simple project to send notifications to a telegram group from nekoBT feed.

Building from source

Since the tool is written in Go, it should be rather trivial.

  1. Ensure that you have Go installed on your system. You can download it from here. At least Go 1.23.1 is required.
  2. Clone this repository and switch to the project's root directory
  3. 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" .

Docker

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:latest

On linux docker_run.sh can be used for auto run. (This also mount cache file.)

Usage

Both config.json and cache.json have to be created, there is example files. With docker_run.sh only config have to be created.

Config

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 group
  • topic_id: topic ID if Topics is enabled in the group
  • bot_token: token for the bot
  • sleep: 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

Cache

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.

About

Send notifications to a telegram group from nekoBT uploads

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors