Skip to content

Notifications

martiliones edited this page Apr 12, 2024 · 6 revisions

Currencyinfo can be optionally configured to send notifications for different platforms, find details on them within this section.

ADAMANT

Create an account

To send notifications to your ADAMANT address, you first need to create a new account for the bot. Simply generate a new passphrase at adm.im or use the adamant-console through the terminal for advanced users.

Make sure you have enough ADM to send messages on the new account. You can get a little bit for free here.

Configure

Copy the passphrase from the account that will send notifications and paste it into the adamantPassphrase field. Then, list the addresses of the accounts that will receive notifications, separated by commas, and put them in the adamant field.

Example:

  "notify": {
    "adamantPassphrase": "ramp weather glance salute regret knife seven major grace sudden shop change",
    "adamant": [
      "U12345678901234567890"
    ]
  }

Slack

Create an app

First, create a new Slack app.

  • Navigate to FeaturesIncoming Webhooks in the sidebar.
  • Activate Incoming Webhooks.
  • Click "Add New Webhook to Workspace" and choose a channel to post your notifications.

Configure

Paste the Webhook URL you just created into slack field inside notify object:

  "notify": {
    "slack": [
      "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
    ]
  }

Discord

Create webhook

First, open your Discord server.

  • Navigate to the Server SettingsIntegrations tab.
  • Click on Webhooks and then click on New Webhook.
  • Press on the created hook and choose channel to post your notifications.
  • Click Copy Webhook URL

Configure

Add the Webhook URL you copied into discord field inside notify object:

  "notify": {
    "discord": [
      "https://discord.com/api/webhooks/123456789012345678/aBCdeFg9h0iJKl1-_mNoPqRST2uvwXYZ3ab4cDefgH5ijklmnOPQrsTuvWxYZaBC-de_"
    ]
  }