Getting started with Variables
FrameNinja provides high flexibility and customization with chains but there is also opportunity to customize them. There are variables which you can use to get info from your stream, generate random numbers, etc. Most of the following examples will contain chat commands for better understanding.
Variables are present in all sections of our app - in chains, events and autoruns:
Some events also provide built-in variables (e.g. Nickname and Message in "On Chat Message" event)
Chains, events and autoruns editors have "Variables" block. To add variable click on Plus Button
You will see popup where you should enter variable name and select its type
Variable Name is used to insert variable somewhere Variable Type describes what value will variable have Some of variables have additional options. For example, "Random Number" variable has "Min" and "Max" options.
After save you will see variable block with "Copy" button.
You can paste this code in commands options.
Now let's look what variables we can create now
String and Multiline String
These variables are present only in Chains section. If chain has variables of these types, you will be asked for their values before chain call. It is useful when you need to customize something - e.g. text message or timer duration
This variable is generated each time chain/event/autorun is called
Use case example: chat command
Imagine that we have "Greetings" counter which increases on each message with "Hello" message.
And we create another chat command -
Example of event with "Greetings" counter:
For example, you create lobby in some game for your viewers and want to share its name and password You have chain like this:
So you can create chat command which will send lobby name and password, as well:
This variable contains your stream duration
Random Twitch Chatter and Random Twitch Subscriber
These variables will take random users from your Twitch stream.
!kiss command to kill random chatter.
Last Created Poll Link and Last Created Poll Question
If you create some poll using "Create Poll" function, you can use these variables later to get poll link and question.
My Twitch Nickname
Your nickname on Twitch