Available translations
loading results
Discord Bot
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.
Discord Bot düğümü, bir Discord Bot için yapılandırmayı tanımlamak için kullanılır. Bu bot, Superalgos'un bir Discord Kanalına duyurular göndermesini sağlar.
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.
Discord Bot'u kullanmak için yeni bir Uygulama oluşturmanız gerekecektir. Botunuzu oluşturmak ve bir Auth Token almak için resmi Discord geliştirici portalı belgelerini izleyin.
Parameters:
Parametreler:
- token - required - obtained from the Discord Developer Portal.
- token - gerekli - Discord Geliştirici Portalından elde edilir.
-
channelId
- required - right click on a channel then Copy ID to obtain the channel ID. -
channelId
- gerekli - kanal kimliğini elde etmek için bir kanala sağ tıklayın ve ardından Kimliği Kopyala'ya tıklayın. - format - optional - allows custom formatting of the message being sent into Discord.
- biçim - isteğe bağlı - Discord'a gönderilen mesajın özel olarak biçimlendirilmesini sağlar.
Recognized Format Variables:
Tanınan Biçim Değişkenleri:
- `%{EXCHANGE}` the exchange which is operating,
i.e.
Binance - `%{EXCHANGE}` çalışmakta olan borsa, yani Binance
- `%{MARKET}` the market which is operating.
i.e.
BTC/USDT - `%{MARKET}` faaliyette olan piyasa. yani BTC/USDT
- `%{MESSAGE}` the text being sent
- `%{MESSAGE}` gönderilen metin
An example format is:
Örnek bir format şöyledir:
"%{EXCHANGE} %{MARKET}: %{MESSAGE}"
Which results in a final message in Discord that looks like:
Bu da Discord'da aşağıdaki gibi bir son mesajla sonuçlanır:
"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
Tip: When a menu item is grayed out, it means that Discord Bot already has the required child type that the menu item may add, and only that child is allowed for that case.
Discord Bot Attaching Rules
The following are the Node Attaching Rules that govern the attachment of Discord Bot with other nodes:
Compatible Types: