Small program to send Discord notifications when plex webhook sends events.
Here is the Plex docs about webhooks: https://support.plex.tv/articles/115002267687-webhooks/
Supported events:



First, your need to add a webhook URL in your Plex account settings (a PlexPass suscription is required):


The URL has to match this format http(s)://<your-server-ip>/plex.
Then in order to enable the library.new notifications, you need to enable push notifications on your Plex server settings.

Hit this URL http://<your-server-ip>/discord in your browser, this will redirect you to the Discord page to authorize and install the bot.
REQUIRED ENVIRONMENT VARIABLES:
/images.You can find it by right-clicking on your discord channel, then:

# Getting the help
$> server -h
--[no-]media Enable plex media.* events.
(defaults to on)
--[no-]library Enable plex library.new event.
(defaults to on)
-v, --verbose Add more logging.
-h, --help
$> docker run -e DISCORD_CHANNEL_ID="<your-channel-id>" -e SELF_DOMAIN="http(s)://<your-server-ip>" -p 8080:8080 arinono/plex-notifier [arguments]
Coming soon, I need to add binary to releases.
If you want to start the project locally, or build it to use your own Discord bot you can:
# Run all the tests with coverage
$> DISABLE_NOTIFIER=true DISCORD_CHANNEL_ID="<your-channel-id>" DISCORD_CLIENT_ID="<your-client-id>" DISCORD_BOT_TOKEN="<your-bot-token>" derry run test-full
# Run a single file
$> DISABLE_NOTIFIER=true DISCORD_CHANNEL_ID="<your-channel-id>" DISCORD_CLIENT_ID="<your-client-id>" DISCORD_BOT_TOKEN="<your-bot-token>" derry run test -- test/<file>.dart
# Start locally
$> SELF_DOMAIN="http(s)://<your-server-ip>" DISCORD_CHANNEL_ID="<your-channel-id>" dart -DDISCORD_CLIENT_ID="<your-discord-app-id>" -DDISCORD_BOT_TOKEN="<your-discord-bot-token>" bin/main.dart
# Build the executable
$> dart2native -DDISCORD_CLIENT_ID="<your-discord-app-id>" -DDISCORD_BOT_TOKEN="<your-discord-bot-token>" bin/main.dart -o build/server
# or build the Docker image
$> docker build --build-arg DISCORD_BOT_TOKEN="<your-discord-bot-token>" --build-arg DISCORD_CLIENT_ID="<your-discord-app-id>" -t <image-name> .
# Run the docker image
$> docker run -e SELF_DOMAIN="http(s)://<your-server-ip>" -e DISCORD_CHANNEL_ID="<your-channel-id>" -p 8080:8080 <image-name> [args]
Todo:
Ideas:
library.on.deck notifications.Content type
Image
Digest
Size
11.7 MB
Last updated
about 6 years ago
docker pull arinono/plex-notifier