21. Button Exchange-1 (Fixed)
Allows users to exchange a fixed amount of conditional units inside the bot, transferring the amount predefined by the admin from one variable to another.
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
🆙 Advanced Variant:
« Button Exchange-2 (Course)» - exchange amount defined by user
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
🔌 Plugins:
➕ 13. Bonus to Ref. Parent
➕ 14. Macros and Expressions for Buttons
➕ 38. Bonus in a Global Variable
➕ 25. Conditions
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
☞ To add «Button Exchange-1 (Fixed)» button go:
🎛 Buttons Editor
⚪️ Select the button
⚪️ Press *️⃣ (Settings)
⚪️ Set Exchange-1 (Fixed)
▪️ User must press the button in order to receive the bonus.
▪️ In button messages, you can use variable macros and mathematical expressions.
▪️ The exchange amount can be a decimal fraction (0.01).
➠ Example: 0.01
❗️ Here and in any bot's functions use a period ( . ) to separate the decimal part.
▪️ To customize a button:
▫️ Select a variable for deduction.
▫️ Select variable for increment.
▫️ Specify the amount of the transfer.
▫️ Inter a message for a case of a successful exchange.
▫️ Inter a message for a case when exchange was not successful for one reason or another.
▪️ In button Exchange-1 (Fixed) messages you can use expressions. To convert hours+minutes in minutes use:
➠ Example
{%cooldownh%*60 + %cooldownm%}
▪️ Following macros available for button's Actions:
%charge_sum_v%
%topup_sum_v%
macros store the amounts of charge and accrual, respectively.
▪️ Each button provided separately for one bot.
▪️ Setting of the button can be done in the
☞ properties (*️⃣) of the button using step-by-step wizard.
To add feature go to your bot:
☞ 🔐Admin | 🧩Extensions | 📂Buttons
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
👾 For 1 Bot (individually)