Skip to content

๐Ÿ“บ๐Ÿค– A simple Telegram bot for controlling SickChill

License

Notifications You must be signed in to change notification settings

noam09/chillbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ChillBot

๐Ÿค– A simple Telegram bot for controlling SickChill.

Dependencies

Build

Clone this repository and go build:

git clone https://github.com/noam09/chillbot
cd chillbot
go build main.go

Install

Use go install to get and build ChillBot, making it available in $GOPATH/bin/chillbot:

go get -u github.com/noam09/chillbot
go install github.com/noam09/chillbot

docker-compose

A sample docker-compose.yml is included.

# Pull the latest code
git clone https://github.com/noam09/chillbot
cd chillbot
# Modify YAML according to your setup
nano docker-compose.yml
# Run the container and send to background
docker-compose up -d

The docker-compose.yml is based on the official golang:1.12.7-alpine image:

---
version: "2"

services:
  chillbot:
    image: golang:1.12.7-alpine
    volumes:
      - .:/go/src/chillbot
    working_dir: /go/src/chillbot
    command: >
      sh -c 'go run main.go
      --token=<bot>
      --key=<apikey>
      -w <chatid>
      --host=<host>
      --port=<port>
      --base=<urlbase>
      --ssl'

Modify the command section's parameters based on the help-text below.

Usage

Running the bot:

ChillBot

Usage:
  chillbot --token=<bot> -w <chatid>... [--host=<host>] [--port=<port>] [--base=<urlbase>] [--ssl] [-d]
  chillbot --token=<bot> --key=<apikey> -w <chatid>... [--host=<host>] [--port=<port>] [--base=<base>] [--ssl] [-d]
  chillbot -h | --help

Options:
  -h, --help                Show this screen.
  -t, --token=<bot>         Telegram bot token.
  -k, --key=<apikey>        API key.
  -w, --whitelist=<chatid>  Telegram chat ID(s) allowed to communicate with the bot (contact @myidbot).
  -o, --host=<host>         Hostname or address SickChill runs on [default: 127.0.0.1].
  -r, --port=<port>         Port SickChill runs on [default: 5050].
  -b, --base=<urlbase>      Path which should follow the base URL.
  -s, --ssl                 Use TLS/SSL (HTTPS) [default: false].
  -d, --debug               Debug logging [default: false].

Controlling the bot:

๐Ÿ“บ /q - TV show search
Or simply send a query without any commands
Send a hashtag and TVDB ID if you know exactly what you want (#12345).

โŽ /c - Cancel current operation

๐Ÿ’ก Protip! Sending ChillBot a hashtag followed by a TVDB series ID (e.g. #123456) will add the series to the snatchlist.

TODO

  • Makefile
  • systemd service file
  • Add group command support (/command@bot, untested)
  • Check if exists in library
  • On-the-fly user whitelisting?
  • Choose quality profile other than the default

Development

Contributions are always welcome, just create a pull request or submit an issue.

License

This is free software under the GPL v3 open source license. Feel free to do with it what you wish, but any modification must be open sourced. A copy of the license is included.

About

๐Ÿ“บ๐Ÿค– A simple Telegram bot for controlling SickChill

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages