projectdiscovery / notify

Notify is a Go-based assistance package that enables you to stream the output of several tools (or read from a file) and publish it to a variety of supported platforms.

Home Page:https://projectdiscovery.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord messages appear as embeds rather than plaintext

mikedesu opened this issue · comments

See screenshots.

Screenshot_2023-09-01_00-47-16

I managed to get the plaintext working by doing a raw curl to the webhook address with a simple JSON format message. I tried digging through the go source code but it is not my language. Wherever the JSON is constructed before doing the post, the tweak should be done there.

It'd be nice to have an option of either embeds -or- plaintext, but the reason I need plaintext is that I'm trying to chain notify-discord to matterbridge-irc. I can do it with the raw curl now, but it would be nice if I could use notify for this...matterbridge won't read the embed, but it WILL read the plaintext.

Screenshot_2023-09-01_00-47-30

@mikedesu You can get plaintext Discord message by using custom webhook:

custom:
  - id: webhook
    custom_webhook_url: "https://discord.com/api/webhooks/..."
    custom_method: POST
    custom_format: '{"content":"{{data}}"}'
    custom_headers:
      Content-Type: application/json