diff --git a/README.md b/README.md index 05f4f0d..eb051fa 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ - ✔️ Upload images, videos, gifs, files - ✔️ Fancy embeds on Discord - ✔️ Seamless inline video embeds on Discord -- ✔️ Upload log via Discord Webhooks +- ✔️ Upload log via customizable Discord Webhooks - ✔️ File deletion - ✔️ Usage metrics - ✔️ Multiple access types @@ -130,6 +130,7 @@ Once you have these, add the following HTTP headers to your ShareX config: | **`X-Ass-Webhook-Client`** | The **Webhook ID** | | **`X-Ass-Webhook-Token`** | The **Webhook Token** | | **`X-Ass-Webhook-Username`** | (Optional) the "username" of the Webhook; can be set to whatever you want | +| **`X-Ass-Webhook-Avatar`** | (Optional) URL to an image to use as the Webhook avatar. Use the **full** URL including `https://` | Webhooks will show the filename, mimetype, size, upload timestamp, thumbail, and a link to delete the file. To disable webhooks, simply remove the headers from your config. diff --git a/ass.js b/ass.js index 6878ee5..bd8e929 100755 --- a/ass.js +++ b/ass.js @@ -135,7 +135,7 @@ function startup() { // Send the embed to the webhook, then delete the client after to free resources whc.send(null, { username: req.headers['x-ass-webhook-username'] || 'ass', - avatarURL: ASS_LOGO, + avatarURL: req.headers['x-ass-webhook-avatar'] || ASS_LOGO, embeds: [embed] }).then((_msg) => whc.destroy()); }