{"repo":"fieu/discord.sh","free":true,"listed":false,"github":"https://github.com/fieu/discord.sh","clone":"git clone https://github.com/fieu/discord.sh.git","description":"Write-only command-line Discord webhooks integration written in 100% Bash script","language":"Shell","stars":565,"topics":["bash","discord","discord-webhook","shell","discord-webhooks","webhook","webhooks","discord-bash","discord-shell"],"license":"GPL-3.0","category":"cli-tools","readme_excerpt":"Write-only command-line integration for Discord webhooks, written in 100% Bash script. Influenced heavily by [slack-cli][slack]. Table of Contents - Features - Dependencies - Usage - Options - Tips - - Proper character escaping - Contributing - License Features - Create and send very customizable and beautiful Discord messages 🎉 ✨ - Less than 400 lines of pure Bash 😎 - Extremely lightweight ⚡ 🚀 - Only requires [curl][curl] and [jq][jq] to run 🔥 Dependencies - [bash][bash] (GNU Bourne-Again SHell) - [bats][bats] (tests) - [curl][curl] (http requests) - [jq][jq] (JSON parsing) - [base64][base64] (webhook avatar modification) - [file][file] (MIME type retrieval for webhook avatar modification) Usage 1. Setting up a Discord webhook. 1. [Setup a webhook][webhook] in the desired Discord text channel 2. Download (or clone) a copy of discord.sh 3. Point discord.sh at a webhook endpoint (see below) 4. Go nuts. 2. Specifying a Webhook URL within discord.sh There are three ways to point discord.sh at a webhook endpoint, in order of priority that discord.sh takes: 1. Pass the webhook URL as an argument to discord.sh using --webhook-url 2. Set an environment variable called $DISCORD WEBHOOK 3. Create a file called .webhook in the same directory as discord.sh , containing only the webhook URL 3. Using the script Simple chat example Simple chat example with custom username and avatar Advanced chat example using an embed (using all possible options) Sending a file (up to 8MB, per Discord","default_branch":null,"files":null,"tree":[],"storefront":"/r/fieu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fieu/discord.sh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}