Available translations

Discord Bot

social-bots.png
discord-bot.png
The Discord Bot node is used for defining the configuration for a Discord Bot. This bot allows Superalgos to send announcements to a Discord Channel.
In order to use the Discord Bot, you will need to create a new Application. Follow the official Discord developmer portal documentation to create your bot and obtain an Auth Token.
Parameters:
- token - required - obtained from the Discord Developer Portal.
- channelId - required - right click on a channel then Copy ID to obtain the channel ID.
- format - optional - allows custom formatting of the message being sent into Discord.
Recognized Format Variables:
- `%{EXCHANGE}` the exchange which is operating, i.e. Binance
- `%{MARKET}` the market which is operating. i.e. BTC/USDT
- `%{MESSAGE}` the text being sent
An example format is:
 "%{EXCHANGE} %{MARKET}: %{MESSAGE}"
Which results in a final message in Discord that looks like:
 "Binance BTC/USDT: Backtesting Session 'Lightning Strike' is starting."
Initial Values
These are the Initial Values for Discord Bot configuration:
 {
    "token": "DISCORD_BOT_AUTH_TOKEN_FROM_DEVELOPER_PORTAL",
    "channelId": "CHANNEL_ID_FROM_DISCORD"
}
Examples
This is a list of properties featured by the Discord Bot configuration. Expanding a property shows sample values for the property extracted from the current Workspace.
Discord Bot Menu
The Discord Bot node has the following Node Menu items:
The Configure menu item has the following properties:
  • action: Configure
  • actionFunction: uiObject.configEditor.activate
  • label: Configure
  • iconPathOn: configuration
  • iconPathOff: configuration
  • actionProject: Foundations
The Send Discord Test Message menu item has the following properties:
  • action: Send Discord Test Message
  • label: Send Discord Test Message
  • iconPathOn: test-entity
  • iconPathOff: test-entity
  • actionFunction: payload.executeAction
  • actionProject: Social-Bots
The Delete menu item has the following properties:
  • action: Delete UI Object
  • actionProject: Visual-Scripting
  • askConfirmation: true
  • confirmationLabel: Confirm to Delete
  • label: Delete
  • iconPathOn: delete-entity
  • iconPathOff: delete-entity
  • actionFunction: payload.executeAction
Discord Bot Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Discord Bot with other nodes:
Compatible Types: