@lumiastream/lumia-types 2.9.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -797,6 +797,28 @@ export declare enum SystemVariables {
|
|
|
797
797
|
RANDOM_INPUT = "random_input",
|
|
798
798
|
/** Evaluate a math expression. Example: {{math={{var1}}+{{var2}}}}. Use as {{math}}. */
|
|
799
799
|
MATH = "math",
|
|
800
|
+
/** Compare two values. Example: {{compare={{var1}},>,{{var2}}}}. Use as {{compare}}. */
|
|
801
|
+
COMPARE = "compare",
|
|
802
|
+
/** Round a value to decimal places. Example: {{round={{math={{var1}}/{{var2}}}},2}}. Use as {{round}}. */
|
|
803
|
+
ROUND = "round",
|
|
804
|
+
/** Conditional output based on truthy value. Example: {{if={{compare={{var1}},>,10}},high,low}}. Use as {{if}}. */
|
|
805
|
+
IF = "if",
|
|
806
|
+
/** Return first non-empty input. Example: {{coalesce={{display_name}},{{username}},Anonymous}}. Use as {{coalesce}}. */
|
|
807
|
+
COALESCE = "coalesce",
|
|
808
|
+
/** Check if value is between two numbers. Example: {{between={{var1}},10,50}}. Use as {{between}}. */
|
|
809
|
+
BETWEEN = "between",
|
|
810
|
+
/** Return minimum numeric value. Example: {{min={{v1}},{{v2}},100}}. Use as {{min}}. */
|
|
811
|
+
MIN = "min",
|
|
812
|
+
/** Return maximum numeric value. Example: {{max={{v1}},{{v2}},100}}. Use as {{max}}. */
|
|
813
|
+
MAX = "max",
|
|
814
|
+
/** Extract regex capture group from text. Example: {{regex_extract={{message}},\"(\\d+)\",1}}. Use as {{regex_extract}}. */
|
|
815
|
+
REGEX_EXTRACT = "regex_extract",
|
|
816
|
+
/** Replace text or regex matches. Example: {{replace={{message}},badword,***}}. Use as {{replace}}. */
|
|
817
|
+
REPLACE = "replace",
|
|
818
|
+
/** Format a date with a pattern. Example: {{format_date={{session_start_date}},MM/DD/YYYY hh:mm A}}. Use as {{format_date}}. */
|
|
819
|
+
FORMAT_DATE = "format_date",
|
|
820
|
+
/** Show elapsed time since date in short format. Example: {{time_since={{follow_time}}}}. Use as {{time_since}}. */
|
|
821
|
+
TIME_SINCE = "time_since",
|
|
800
822
|
/** Sum multiple variables. Example: {{sum_variables=twitch_total_follower_count,kick_total_follower_count}}. Use as {{sum_variables}}. */
|
|
801
823
|
SUM_VARIABLES = "sum_variables",
|
|
802
824
|
/** Offset a variable by a number. Example: {{offset_count=twitch_total_follower_count,10}}. Use as {{offset_count}}. */
|
|
@@ -797,6 +797,28 @@ export declare enum SystemVariables {
|
|
|
797
797
|
RANDOM_INPUT = "random_input",
|
|
798
798
|
/** Evaluate a math expression. Example: {{math={{var1}}+{{var2}}}}. Use as {{math}}. */
|
|
799
799
|
MATH = "math",
|
|
800
|
+
/** Compare two values. Example: {{compare={{var1}},>,{{var2}}}}. Use as {{compare}}. */
|
|
801
|
+
COMPARE = "compare",
|
|
802
|
+
/** Round a value to decimal places. Example: {{round={{math={{var1}}/{{var2}}}},2}}. Use as {{round}}. */
|
|
803
|
+
ROUND = "round",
|
|
804
|
+
/** Conditional output based on truthy value. Example: {{if={{compare={{var1}},>,10}},high,low}}. Use as {{if}}. */
|
|
805
|
+
IF = "if",
|
|
806
|
+
/** Return first non-empty input. Example: {{coalesce={{display_name}},{{username}},Anonymous}}. Use as {{coalesce}}. */
|
|
807
|
+
COALESCE = "coalesce",
|
|
808
|
+
/** Check if value is between two numbers. Example: {{between={{var1}},10,50}}. Use as {{between}}. */
|
|
809
|
+
BETWEEN = "between",
|
|
810
|
+
/** Return minimum numeric value. Example: {{min={{v1}},{{v2}},100}}. Use as {{min}}. */
|
|
811
|
+
MIN = "min",
|
|
812
|
+
/** Return maximum numeric value. Example: {{max={{v1}},{{v2}},100}}. Use as {{max}}. */
|
|
813
|
+
MAX = "max",
|
|
814
|
+
/** Extract regex capture group from text. Example: {{regex_extract={{message}},\"(\\d+)\",1}}. Use as {{regex_extract}}. */
|
|
815
|
+
REGEX_EXTRACT = "regex_extract",
|
|
816
|
+
/** Replace text or regex matches. Example: {{replace={{message}},badword,***}}. Use as {{replace}}. */
|
|
817
|
+
REPLACE = "replace",
|
|
818
|
+
/** Format a date with a pattern. Example: {{format_date={{session_start_date}},MM/DD/YYYY hh:mm A}}. Use as {{format_date}}. */
|
|
819
|
+
FORMAT_DATE = "format_date",
|
|
820
|
+
/** Show elapsed time since date in short format. Example: {{time_since={{follow_time}}}}. Use as {{time_since}}. */
|
|
821
|
+
TIME_SINCE = "time_since",
|
|
800
822
|
/** Sum multiple variables. Example: {{sum_variables=twitch_total_follower_count,kick_total_follower_count}}. Use as {{sum_variables}}. */
|
|
801
823
|
SUM_VARIABLES = "sum_variables",
|
|
802
824
|
/** Offset a variable by a number. Example: {{offset_count=twitch_total_follower_count,10}}. Use as {{offset_count}}. */
|
|
@@ -11,6 +11,28 @@ export declare enum SystemVariables {
|
|
|
11
11
|
RANDOM_INPUT = "random_input",
|
|
12
12
|
/** Evaluate a math expression. Example: {{math={{var1}}+{{var2}}}}. Use as {{math}}. */
|
|
13
13
|
MATH = "math",
|
|
14
|
+
/** Compare two values. Example: {{compare={{var1}},>,{{var2}}}}. Use as {{compare}}. */
|
|
15
|
+
COMPARE = "compare",
|
|
16
|
+
/** Round a value to decimal places. Example: {{round={{math={{var1}}/{{var2}}}},2}}. Use as {{round}}. */
|
|
17
|
+
ROUND = "round",
|
|
18
|
+
/** Conditional output based on truthy value. Example: {{if={{compare={{var1}},>,10}},high,low}}. Use as {{if}}. */
|
|
19
|
+
IF = "if",
|
|
20
|
+
/** Return first non-empty input. Example: {{coalesce={{display_name}},{{username}},Anonymous}}. Use as {{coalesce}}. */
|
|
21
|
+
COALESCE = "coalesce",
|
|
22
|
+
/** Check if value is between two numbers. Example: {{between={{var1}},10,50}}. Use as {{between}}. */
|
|
23
|
+
BETWEEN = "between",
|
|
24
|
+
/** Return minimum numeric value. Example: {{min={{v1}},{{v2}},100}}. Use as {{min}}. */
|
|
25
|
+
MIN = "min",
|
|
26
|
+
/** Return maximum numeric value. Example: {{max={{v1}},{{v2}},100}}. Use as {{max}}. */
|
|
27
|
+
MAX = "max",
|
|
28
|
+
/** Extract regex capture group from text. Example: {{regex_extract={{message}},\"(\\d+)\",1}}. Use as {{regex_extract}}. */
|
|
29
|
+
REGEX_EXTRACT = "regex_extract",
|
|
30
|
+
/** Replace text or regex matches. Example: {{replace={{message}},badword,***}}. Use as {{replace}}. */
|
|
31
|
+
REPLACE = "replace",
|
|
32
|
+
/** Format a date with a pattern. Example: {{format_date={{session_start_date}},MM/DD/YYYY hh:mm A}}. Use as {{format_date}}. */
|
|
33
|
+
FORMAT_DATE = "format_date",
|
|
34
|
+
/** Show elapsed time since date in short format. Example: {{time_since={{follow_time}}}}. Use as {{time_since}}. */
|
|
35
|
+
TIME_SINCE = "time_since",
|
|
14
36
|
/** Sum multiple variables. Example: {{sum_variables=twitch_total_follower_count,kick_total_follower_count}}. Use as {{sum_variables}}. */
|
|
15
37
|
SUM_VARIABLES = "sum_variables",
|
|
16
38
|
/** Offset a variable by a number. Example: {{offset_count=twitch_total_follower_count,10}}. Use as {{offset_count}}. */
|
package/dist/variables.types.js
CHANGED
|
@@ -18,6 +18,28 @@ var SystemVariables;
|
|
|
18
18
|
SystemVariables["RANDOM_INPUT"] = "random_input";
|
|
19
19
|
/** Evaluate a math expression. Example: {{math={{var1}}+{{var2}}}}. Use as {{math}}. */
|
|
20
20
|
SystemVariables["MATH"] = "math";
|
|
21
|
+
/** Compare two values. Example: {{compare={{var1}},>,{{var2}}}}. Use as {{compare}}. */
|
|
22
|
+
SystemVariables["COMPARE"] = "compare";
|
|
23
|
+
/** Round a value to decimal places. Example: {{round={{math={{var1}}/{{var2}}}},2}}. Use as {{round}}. */
|
|
24
|
+
SystemVariables["ROUND"] = "round";
|
|
25
|
+
/** Conditional output based on truthy value. Example: {{if={{compare={{var1}},>,10}},high,low}}. Use as {{if}}. */
|
|
26
|
+
SystemVariables["IF"] = "if";
|
|
27
|
+
/** Return first non-empty input. Example: {{coalesce={{display_name}},{{username}},Anonymous}}. Use as {{coalesce}}. */
|
|
28
|
+
SystemVariables["COALESCE"] = "coalesce";
|
|
29
|
+
/** Check if value is between two numbers. Example: {{between={{var1}},10,50}}. Use as {{between}}. */
|
|
30
|
+
SystemVariables["BETWEEN"] = "between";
|
|
31
|
+
/** Return minimum numeric value. Example: {{min={{v1}},{{v2}},100}}. Use as {{min}}. */
|
|
32
|
+
SystemVariables["MIN"] = "min";
|
|
33
|
+
/** Return maximum numeric value. Example: {{max={{v1}},{{v2}},100}}. Use as {{max}}. */
|
|
34
|
+
SystemVariables["MAX"] = "max";
|
|
35
|
+
/** Extract regex capture group from text. Example: {{regex_extract={{message}},\"(\\d+)\",1}}. Use as {{regex_extract}}. */
|
|
36
|
+
SystemVariables["REGEX_EXTRACT"] = "regex_extract";
|
|
37
|
+
/** Replace text or regex matches. Example: {{replace={{message}},badword,***}}. Use as {{replace}}. */
|
|
38
|
+
SystemVariables["REPLACE"] = "replace";
|
|
39
|
+
/** Format a date with a pattern. Example: {{format_date={{session_start_date}},MM/DD/YYYY hh:mm A}}. Use as {{format_date}}. */
|
|
40
|
+
SystemVariables["FORMAT_DATE"] = "format_date";
|
|
41
|
+
/** Show elapsed time since date in short format. Example: {{time_since={{follow_time}}}}. Use as {{time_since}}. */
|
|
42
|
+
SystemVariables["TIME_SINCE"] = "time_since";
|
|
21
43
|
/** Sum multiple variables. Example: {{sum_variables=twitch_total_follower_count,kick_total_follower_count}}. Use as {{sum_variables}}. */
|
|
22
44
|
SystemVariables["SUM_VARIABLES"] = "sum_variables";
|
|
23
45
|
/** Offset a variable by a number. Example: {{offset_count=twitch_total_follower_count,10}}. Use as {{offset_count}}. */
|
|
@@ -780,6 +802,17 @@ exports.AllVariables = {
|
|
|
780
802
|
'random',
|
|
781
803
|
'random_input',
|
|
782
804
|
'math',
|
|
805
|
+
'compare',
|
|
806
|
+
'round',
|
|
807
|
+
'if',
|
|
808
|
+
'coalesce',
|
|
809
|
+
'between',
|
|
810
|
+
'min',
|
|
811
|
+
'max',
|
|
812
|
+
'regex_extract',
|
|
813
|
+
'replace',
|
|
814
|
+
'format_date',
|
|
815
|
+
'time_since',
|
|
783
816
|
'sum_variables',
|
|
784
817
|
'offset_count',
|
|
785
818
|
'get_commands',
|