[bash] Send console output via Discord Webhook

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

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

Shell: Select all

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

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

Shell: Select all

DISCORD_WEBHOOK_URL="<Copy Webhook URL>"

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