You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ben Kristinsson 8809491061
ben/notflixbot/pipeline/head This commit looks good Details
5 months ago
notflixbot gitea 5 months ago
tests bunch of stuff 10 months ago
.flake8 refactoring and cleaning up 11 months ago
.gitignore bunch of stuff 10 months ago
Dockerfile stop failing on non-existing file 8 months ago
Jenkinsfile gitea 5 months ago
LICENSE Initial commit 11 months ago link differently 10 months ago
config-sample.json bunch of stuff 10 months ago
neo.jpeg bunch of stuff 10 months ago
poetry.lock gitea 5 months ago
pyproject.toml gitea 5 months ago bunch of stuff 10 months ago


Build Status Docker Image Version (latest semver) Docker Image Size (latest by date)

a general purpose matrix bot for, trying to be extensible.


  • matrix bot based on matrix-nio
  • show youtube titles and link to invidous
  • add a movie to radarr from imdb link with !add
  • webhooks listener. handles radarr, sonarr, grafana, jellyfin, slack and custom webhooks
  • uses a zeromq PAIR socket over inproc transport between webhooks and bot


the bot answers to the following commands by default:

  • !add: usage: !add $IMDB_URL
  • !ruok: check if the bot is ok
  • !whoami: show your user id
  • !key_sync: force a key sync (experimental)
  • !help: show help


please see config-sample.json.

by default the webhooks will listen on localhost:3000, but you can change it by setting

"webhook": {
  "host": "",
  "port": 3005

in the config file

running the bot

usage: notflixbot [-h] [-c CONFIG] [-d] subcmd ...

positional arguments:
    start               start matrix bot
    restore_login       start new matrix session
    webhook             start webhook http server
    nio                 low-level stuff, helpful for dev

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        path to config file (default: /etc/config.json)
  -d, --debug           print debug output (default: False)

start the bot

simplest way to start the bot, will use the default configfile /etc/notflixbot.json:

$ notflixbot start
notflixbot 0.1.2
matrix bot running as
matrix client syncing forever
polling zmq socket
webhook listening on

you can use the -c flag to specify a path to a different config file:

notflixbot -c /path/to/a/different/config.json


you can also use docker (build from Dockerfile or use pre-built image):

mkdir ${PWD}/data
docker run --name notflixbot --rm -v ${PWD}/data:/data -v ${PWD}/config.json:/etc/config.json benediktkr/notflixbot:latest

make sure to configure credentials_path and storage_path to be somewhere persisent, for example in /data in this example.

logging in

your config has to set credentials_path to a path to a file that the bot can read and write, that will store the credentials (access token, device id and user id) for the bot.

log in and create the file with:

$ notflixbot restore_login -c config.json

you can also create the file if you have an access token and device_id handy:

  "user_id": "",
  "device_id": "ABCDEF1234",
  "acces_token": "abc123

nio shorthand commands:

usage: notflixbot nio [-h] --forget-room FORGET_ROOM

optional arguments:
  -h, --help            show this help message and exit
  --forget-room FORGET_ROOM
                        canonical_alias or room_id

install libolm depdenency

apt-get install libolm-dev