From 16a3347514846e8fd7c7551704138abc3f706c95 Mon Sep 17 00:00:00 2001
From: tduva Example with pre-defined parameters:Description
-
@@ -210,6 +210,10 @@
All
+ All
chan
The current channel context (without leading #)
All currently open regular channels (separated by spaces,
without leading #)
+
+
+ hostedChan
The currently hosted channel (if any)
+
+
streamstatus
Stream Status (Title/Game or Offline)
@@ -325,11 +329,36 @@
1-
Names of selected streams
+
+ Hotkey
1
The currently selected user (if present)
+
+
+ Selected Text Context menu
+
+ 1-
, msg
The selected text
+
+
+ Admin Context menu
+
+ title
The stream title currently set in the Admin Dialog
+
+
+
+ game
The game (category) currently set in the Admin Dialog
+
+
+
+ tag-ids
The tags currently set in the Admin Dialog (ids, comma-separated)
+
+
+ tag-names
The tags currently set in the Admin Dialog (display names, comma-separated)
+ /ban
are executed in the appropriate channel.
There is a very limited amount of functions available. Functions are - replacements, however they have a function name before the identifier (there - is no short notation for functions):
+Functions are replacements, however they have a function name before the + identifier (there is no short notation for functions):
$<functionName>(<identifier>,<some parameters>,[optional parameters])
$(1-) -> $join(1-,/)
- The following functions are available:
+The following functions are always available:
$if(<identifier>,<output if exists>,[output if not])
nope
, the optional [output if not]
function parameter.$ifeq(<identifier>,<comparison>,<output if equal>,[output if not])
$if
, but instead of just checking fot the
+ $if
, but instead of just checking for the
existence of a parameter it compares it to a given value
(<comparison>
).$ifeq(1,cheesecake,yummy)
with parameters
@@ -372,6 +400,13 @@
cheese cake
turns into an an empty string, since the
optional [output if not]
has not been specified.$switch(<identifier>,<case1>:<result1>,..,[casen]:[resultn],[default])
$ifeq()
functions.
+ Compares the value associated with the identifier with the case values and returns the following
+ result if it matches. If none of the case values match, it will return the default, or an empty value./set fontSize $switch($get(fontSize),25:50,50:18,25)
when added
+ as a Custom Command alternates between font sizes 18, 25 and 50.$join(<identifier>,<separator>)
$randum($$1)
chooses a random number
between 0 and what is the first parameter.$calc(<simple math expression>)
//echo $calc(2^3) $calc( (3+4\) / 2)
+ when entered into the inputbox returns 8 3.5
(note the
+ parentheses in the second, as well as how the closing parenthesis
+ needs to be escaped).$urlencode(<input>)
The following functions are only available in some contexts:
+ +$is(<match input>)
true
if the match succeeds, nothing otherwise.
+ The match input
is in the Highlight
+ format, although what can actually be matched against depends on
+ where the command is ran from, for example the user or message text
+ is only available from the User Dialog or User Context Menu.$if($is(mystatus:bm),I'm a mod,Not a mod)
+ will output I'm a mod
in channels where you are the
+ broadcaster or a moderator, Not a mod
otherwise.$get(<settingName>,[key])
var
,
+ where you can set a string value using setting commands
+ (/set var foo bar
) and then retrieve the value with
+ this function ($get(var,foo)
returns bar
).//echo $get(username)
returns the
+ name you are logged into Chatty with.$if($get(ontop),ONTOP)
will return
+ ONTOP
only if "View - Always on top" is enabled.Tip: Enter e.g. //echo $datetime()
into the chat inputbox to test a function directly, use arrow up/down
keys to cycle through previous inputs. Of course you won't be able to
diff --git a/help/help-guide_folders.html b/help/help-guide_folders.html
index 4de111d..2a73faf 100644
--- a/help/help-guide_folders.html
+++ b/help/help-guide_folders.html
@@ -39,7 +39,8 @@
settings directory that Chatty currently uses.
If you want to replace, copy or delete setting files in any way, make - sure to close Chatty before doing so.
+ sure to close Chatty before doing so (the files may be overwritten + at any time while Chatty is running).You can change the settings directory via different ways:
@@ -64,12 +65,20 @@Note: favoritesAndHistory
and statusPresets
- have been merged into settings
as of v0.9.1.
settings
as of v0.9.1.
+ The addressbook
has been merged into settings
+ as of v0.12 (but may still be written to under some circumstances).
This directory is associated with Chatty when you start it. This is @@ -209,62 +221,36 @@
Chatty performs an automatic backup (enabled by default) everytime it is - started (if at least the number of days as defined in the settings have passed, - by default one). It copies the setting files (except login) to the backup folder - in the settings directory, increasing the numbering of the files with every - backup. It only makes as many backups as defined in the settings and then - starts over with the first number, rotating the files.
- -This is supposed to make recovery of settings easier in case they are not - read or written correctly and thus lost (which shouldn't usually - happen). In that case you can manually copy/rename the lost files from - a backup (just looks for the most recent one based on the change date - that looks fine).
+Setting backups can provide a way to recover your settings if the + setting weren't written or loaded properly or to reset your settings + to a previous state.
-If some settings are important to you this can help, but you - shouldn't rely on it. Always make your own backups, best on a - different device!
- -If you lost your setting files (or some of them) but still have - a backup, you can manually copy the backup to restore it.
-/openBackupDir
to open the Backup folder
- (or enter /showBackupDir
and navigate to the Backup folder
- manually).backup_x_<name>
,
- these represent the separate batches of backups.backup_x_<name>
- to <name>
(for example backup_2_settings
- to settings
). You can ignore the backup_meta
file./dir
or /openDir
commands),
- overwriting any existing setting files.Chatty can perform these types of backups:
+session_*
): A copy of the currenty written settings, which is
+ mostly intended as a fallback if the main settings file cannot be
+ written. This changes often, so loading it only makes sense
+ immediately after starting Chatty, before settings are saved again.auto_*
): A copy of the settings file, made when Chatty is
+ started. By default a backup is made no more often than one day
+ apart and only a limited number of backups are kept.manual_*
): You can create a manual backup via "Main - Save..".
+ Manual backups are never automatically deleted.Note: The login
settings file is not backed up.
+ For a safer backup, make your own backups on a different
+ device.
To load an automatic backup go to "Main - Settings - Main - View Backups"
+ and follow the instructions. If you want to restore a manual backup you made of the
+ settings
file, simply overwrite the current settings
+ file while Chatty is not running.
You can view the backup directory directly by entering /openBackupDir
+ or /showBackupDir
into the Chatty inputbox. Note that files
+ in the backup directory starting with auto_
may be automatically
+ deleted.