Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Notify is a Go-based assistance package that enables you to stream the output of

- Supports for Slack / Discord / Telegram
- Supports for Pushover / Email
- Supports for Microsoft Teams / Google Chat
- Supports for Microsoft Teams / Google Chat / Rocket.Chat
- Supports for File / Pipe input
- Supports Line by Line / Bulk Post
- Supports using Single / Multiple providers
Expand Down Expand Up @@ -160,6 +160,15 @@ gotify:
gotify_disabletls: false
gotify_title: "recon"

rocketchat:
- id: "soc"
rocketchat_webhook_url: "https://chat.example.com/hooks/XXXXXXXX"
rocketchat_channel: "#alertas-seguranca"
rocketchat_username: "ProjectDiscovery"
rocketchat_avatar: "https://example.com/avatar.png"
rocketchat_emoji: ":ghost:"
rocketchat_format: "{{data}}"

custom:
- id: webhook
custom_webhook_url: http://host/api/webhook
Expand Down Expand Up @@ -265,5 +274,6 @@ Notify flags can be configured at default config (`$HOME/.config/notify/config.y
- [Creating Discord webhook](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
- [Creating Telegram bot](https://core.telegram.org/bots#3-how-do-i-create-a-bot)
- [Creating Pushover Token](https://github.com/containrrr/shoutrrr/blob/main/docs/services/pushover.md)
- [Creating Rocket.Chat Incoming Webhook](https://docs.rocket.chat/docs/integrations#incoming-webhook-script)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Fix the stale fragment in the Rocket.Chat webhook reference.

The page resolves, but #incoming-webhook-script does not match a current section in the Rocket.Chat integrations page. Use the current section anchor or remove the fragment. (docs.rocket.chat)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 277, Update the Rocket.Chat Incoming Webhook link in the
README to use the current integrations-page section anchor, or remove the stale
fragment while preserving the existing destination.


Notify is made with 🖤 by the [projectdiscovery](https://projectdiscovery.io) team.
6 changes: 6 additions & 0 deletions cmd/integration-test/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ func (h *gotify) Execute() error {
return run("gotify")
}

// type rocketchat struct{}
//
// func (h *rocketchat) Execute() error {
// return run("rocketchat")
// }

func errIncorrectResultsCount(results []string) error {
return fmt.Errorf("incorrect number of results %s", strings.Join(results, "\n\t"))
}
6 changes: 6 additions & 0 deletions cmd/integration-test/test-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ gotify:
gotify_token: "${GOTIFY_APP_TOKEN}"
gotify_format: "{{data}}"
gotify_disabletls: true
rocketchat:
- id: "rocketchat-integration-test"
rocketchat_webhook_url: "${ROCKETCHAT_WEBHOOK_URL}"
rocketchat_channel: "random"
rocketchat_username: "test"
rocketchat_format: "{{data}}"