Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement simple discord bot to notify the internal team about trades #24

Open
berryhill opened this issue Jul 24, 2023 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@berryhill
Copy link
Contributor

Info

Super simple besides being its own service (ntc-notifier). This could also act as the base plate for now notifiers, for example, twitter!

@berryhill berryhill added the enhancement New feature or request label Jul 24, 2023
@zuwuko
Copy link
Contributor

zuwuko commented Jul 25, 2023

Info

  • Send a message into discord trade-notifier for internal PW Team only (for now) triggered from Nakamoto FE upon "confirming" a trade.
  • This notifier can send to different discord webhook api's by defining them in consul K/V discord-msg
  • Runs on port 4999
  • No authentication, it can only be triggered/accessed from inside the cluster

Curl example from within the cluster

curl --location 'http://localhost:4999/discord-msg/ntc' \
--header 'Content-Type: application/json' \
--data '{
    "content": "Addr A has traded successfully with address B asset C!"
    }'

Image

Consul Config

This is already configured but to understand how it works:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants