You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to replace my Slack notifications for server monitoring to Discord and it would be great if I can output my scripts to the discord script, so it takes the output as --text parameter value if it is omitted.
I've named the script discord and added it to the PATH.
My issue is that I have various cron jobs that have some more complicated one-liners containing quotes, double quotes and backticks and it breaks the "$(...)" usage.
The text was updated successfully, but these errors were encountered:
I'm trying to replace my Slack notifications for server monitoring to Discord and it would be great if I can output my scripts to the discord script, so it takes the output as --text parameter value if it is omitted.
I've named the script
discord
and added it to the PATH.Example (using yours):
discord --title "My notification" --text "$(cat filename | jq -Rs . | cut -c 2- | rev | cut -c 2- | rev)"
becomes
cat filename | jq -Rs . | cut -c 2- | rev | cut -c 2- | rev | discord --title "My notification"
My issue is that I have various cron jobs that have some more complicated one-liners containing quotes, double quotes and backticks and it breaks the "$(...)" usage.
The text was updated successfully, but these errors were encountered: