[bash] Send console output via Discord Webhook

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 20312
Joined: 16 Nov 2011, 08:59

[bash] Send console output via Discord Webhook

Post by rednoah »

send-discord-log.sh is a universally useful little bash script, that takes an arbitrary command, executes that command, captures the console output, and then sends you a Discord message.

Usage:

Code: Select all

send-discord-log filebot -script fn:sysinfo
Install:

Code: Select all

# Fetch script
curl -O https://raw.githubusercontent.com/filebot/plugins/master/bash/send-discord-log.sh

# Make script executable
chmod +x send-discord-log.sh

# Link script into the path
ln -s $PWD/send-discord-log.sh /usr/bin/send-discord-log
Configure:

Code: Select all

DISCORD_WEBHOOK_URL="<Copy Webhook URL>"

Image
:idea: Please read the FAQ and How to Request Help.
Post Reply