From fd3f1a06ef3ed14c53b1ba80602cb81d2b170fd3 Mon Sep 17 00:00:00 2001
From: MxPuffin <102307729+MxPuffin@users.noreply.github.com>
Date: Fri, 1 Nov 2024 17:32:45 +1100
Subject: [PATCH] Update premade-variables.md
Added new/previously unmentioned global variables
Removed old deprecated global variables
Changed Image to an imgur picture showcasing the new global variables panel
---
.../_commands-introduction/premade-variables.md | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/doc_posts/_commands-introduction/premade-variables.md b/doc_posts/_commands-introduction/premade-variables.md
index 27b7f7f..f022bc2 100644
--- a/doc_posts/_commands-introduction/premade-variables.md
+++ b/doc_posts/_commands-introduction/premade-variables.md
@@ -7,7 +7,7 @@ The following premade/permanent global variables are accessible from all the but
These global variables can be viewed in the Variable Viewer in your SAMMI.\
You can access them by using the `Get Global Variable` command, or reference them with `global.variablename` in a command.
-{% include image.html w="75" src="premade_variables.png" alt="SAMMI Global Premade Variables" %}
+{% include image.html w="75" src="https://imgur.com/BtOl2MN" alt="SAMMI Global Premade Variables" %}
**General Variables**
@@ -33,12 +33,10 @@ You can access them by using the `Get Global Variable` command, or reference the
{% include selectAll.html text="extensions
" %}| Object | Contains all extensions and their versions installed in Bridge (only if Bridge is connected to SAMMI)
{% include selectAll.html text="browser_name
" %}| String | Browser name your Bridge connected to SAMMI is using.
{% include selectAll.html text="client_language
" %}| String | Language SAMMI is currently using.
-{% include selectAll.html text="deck_connected
" %}| Boolean | Returns true if SAMMI deck is connected, false if not.
-{% include selectAll.html text="deck_app_connected
" %}| Boolean | True if connected, false if not connected. Lists the connected deck apps.
+{% include selectAll.html text="deck_app_connections
" %}| Array | Contains string names of all connected Deck Apps.
{% include selectAll.html text="deck_app_port
" %}| Number | The port number for SAMMI Panel.
{% include selectAll.html text="SAMMI
" %}| Object | Contains information about your current SAMMI versions.
{% include selectAll.html text="SAMMI.bridge_version
" %}| String | Your current SAMMI Bridge version.
-{% include selectAll.html text="SAMMI.deck_version
" %}| String | Your current SAMMI Deck version.
{% include selectAll.html text="SAMMI.sammi_version
" %}| String | Your current SAMMI Core version.
{% include selectAll.html text="bridge_port
" %}| Number | The port number for SAMMI Bridge connections.
{% include selectAll.html text="trigger_type
" %}| Array | All available trigger types.
@@ -52,6 +50,16 @@ You can access them by using the `Get Global Variable` command, or reference the
{% include selectAll.html text="twitch_accounts
" %}| Array | All linked Twitch account login names.
{% include selectAll.html text="twitch_chat_connected
" %}| Boolean | Twitch chat connection status. True if connected, false if not connected.
{% include selectAll.html text="twitch_client_id
" %}| String | SAMMI Twitch Client ID, used in Twitch API calls.
+{% include selectAll.html text="twitch_default_channel
" %}| String | The Twitch account SAMMI recieves events from.
+{% include selectAll.html text="twitch_default_chat_account
" %}| String | The Twitch account SAMMI sends messages from.
+{% include selectAll.html text="twitch_eventsub_connected
" %}| Boolean | Returns true if SAMMI is connected to Twitch's eventsub.
+{:class='table table-secondary w-auto table-hover text-break' }
+
+**YouTube Variables**
+
+| Variable | Type | Explanation|
+|-------|--------|--------
+{% include selectAll.html text="youtube_accounts
" %}| Array | All linked YouTube account login names.
{:class='table table-secondary w-auto table-hover text-break' }
**OBS Variables**