diff --git a/src/backend/variables/builtin/counter/counter.ts b/src/backend/variables/builtin/counter/counter.ts index fbdafa103..7f0125b71 100644 --- a/src/backend/variables/builtin/counter/counter.ts +++ b/src/backend/variables/builtin/counter/counter.ts @@ -7,12 +7,6 @@ const model: ReplaceVariable = { handle: "counter", usage: "counter[name]", description: "Displays the value of the given counter.", - examples: [ - { - usage: "counter[name]", - description: "Returns the value of the specified counter" - } - ], categories: [VariableCategory.NUMBERS], possibleDataOutput: [OutputDataType.NUMBER] }, diff --git a/src/backend/variables/builtin/currency/currency-rank.ts b/src/backend/variables/builtin/currency/currency-rank.ts index e60f4dbe8..519936345 100644 --- a/src/backend/variables/builtin/currency/currency-rank.ts +++ b/src/backend/variables/builtin/currency/currency-rank.ts @@ -8,7 +8,7 @@ const model : ReplaceVariable = { definition: { handle: "currencyRank", description: "Returns the rank of the current user based on how much of the given currency they have.", - usage: "currencyRank[currencyName, username]", + usage: "currencyRank[currencyName]", examples: [ { usage: "currencyRank[currencyName, username]", diff --git a/src/backend/variables/builtin/currency/currency.ts b/src/backend/variables/builtin/currency/currency.ts index 802d3a2f9..6519f22cc 100644 --- a/src/backend/variables/builtin/currency/currency.ts +++ b/src/backend/variables/builtin/currency/currency.ts @@ -12,7 +12,7 @@ const model : ReplaceVariable = { examples: [ { usage: "currency[currencyName, username]", - description: "Returns the amount of specified currency the given user fas" + description: "Returns the amount of specified currency the given user has" } ], categories: [VariableCategory.USER, VariableCategory.NUMBERS], diff --git a/src/backend/variables/builtin/metadata/index.ts b/src/backend/variables/builtin/metadata/index.ts index c04face94..d3e3312f8 100644 --- a/src/backend/variables/builtin/metadata/index.ts +++ b/src/backend/variables/builtin/metadata/index.ts @@ -6,6 +6,7 @@ import commandTrigger from './command-trigger'; import count from './count'; import effectOutput from './effect-output'; import effectQueueId from './effect-queue-id'; +import effectQueueLength from './effect-queue-length'; import effectQueueName from './effect-queue-name'; import effectQueueStatus from './effect-queue-status'; import overlayInstance from './overlay-instance'; @@ -26,6 +27,7 @@ export default [ count, effectOutput, effectQueueId, + effectQueueLength, effectQueueName, effectQueueStatus, overlayInstance, diff --git a/src/backend/variables/builtin/number/math.ts b/src/backend/variables/builtin/number/math.ts index b810af262..38147e899 100644 --- a/src/backend/variables/builtin/number/math.ts +++ b/src/backend/variables/builtin/number/math.ts @@ -7,16 +7,16 @@ const logger = require("../../../logwrapper"); const model : ReplaceVariable = { definition: { handle: "math", - usage: "math[expression]", + usage: "math[expression]", description: 'Evaluate a math equation using math.js', examples: [ { usage: "math[2 + 2]", - description: "Simple addition calculation returns 4" + description: `Returns 4` }, { usage: "math[5 * (3 + 2)]", - description: "Complex calculation returns 25" + description: `Returns 25` } ], categories: [VariableCategory.COMMON, VariableCategory.NUMBERS], diff --git a/src/backend/variables/builtin/number/number-commafy.ts b/src/backend/variables/builtin/number/number-commafy.ts index 82313520d..0a8eb3fa6 100644 --- a/src/backend/variables/builtin/number/number-commafy.ts +++ b/src/backend/variables/builtin/number/number-commafy.ts @@ -9,7 +9,7 @@ const model : ReplaceVariable = { examples: [ { usage: "commafy[1000000]", - description: "Returns \"1,000,000\"" + description: `Returns "1,000,000"` } ], categories: [VariableCategory.NUMBERS], diff --git a/src/backend/variables/builtin/number/number-floor.ts b/src/backend/variables/builtin/number/number-floor.ts index 4985ccccc..e6a6aa246 100644 --- a/src/backend/variables/builtin/number/number-floor.ts +++ b/src/backend/variables/builtin/number/number-floor.ts @@ -10,10 +10,6 @@ const model : ReplaceVariable = { { usage: "floor[3.7]", description: "Returns 3" - }, - { - usage: "floor[$presetListArg[Number]]", - description: "Rounds down the preset list argument value" } ], categories: [VariableCategory.NUMBERS], diff --git a/src/backend/variables/builtin/number/number-max.ts b/src/backend/variables/builtin/number/number-max.ts index cc84bedfe..cc2677c54 100644 --- a/src/backend/variables/builtin/number/number-max.ts +++ b/src/backend/variables/builtin/number/number-max.ts @@ -4,7 +4,7 @@ import { OutputDataType, VariableCategory } from "../../../../shared/variable-co const model : ReplaceVariable = { definition: { handle: "max", - description: "Returns the highest-value numbered passed", + description: "Returns the highest-value number", usage: "max[num1, num2, ...]", examples: [ { diff --git a/src/backend/variables/builtin/number/number-min.ts b/src/backend/variables/builtin/number/number-min.ts index 0cd31a402..336d2b05f 100644 --- a/src/backend/variables/builtin/number/number-min.ts +++ b/src/backend/variables/builtin/number/number-min.ts @@ -4,7 +4,7 @@ import { OutputDataType, VariableCategory } from "../../../../shared/variable-co const model : ReplaceVariable = { definition: { handle: "min", - description: "Returns the lowest-value numbered passed", + description: "Returns the lowest-value number", usage: "min[num1, num2, ...]", examples: [ { diff --git a/src/backend/variables/builtin/text/text-capitalize.ts b/src/backend/variables/builtin/text/text-capitalize.ts index 3689fb634..2e56cba6c 100644 --- a/src/backend/variables/builtin/text/text-capitalize.ts +++ b/src/backend/variables/builtin/text/text-capitalize.ts @@ -4,12 +4,16 @@ import { OutputDataType, VariableCategory } from "../../../../shared/variable-co const model : ReplaceVariable = { definition: { handle: "capitalize", - description: "Capitalizes the given text.", + description: "Capitalizes the first letter of the given text, converting the rest into lowercase", usage: "capitalize[text]", examples: [ { usage: `capitalize["hello world"]`, description: `Returns "Hello world".` + }, + { + usage: `capitalize["HELLO WORLD"]`, + description: `Returns "Hello world".` } ], categories: [VariableCategory.TEXT], diff --git a/src/backend/variables/builtin/text/text-decode-from-url.ts b/src/backend/variables/builtin/text/text-decode-from-url.ts index cb99d0a4c..36ec4c7c6 100644 --- a/src/backend/variables/builtin/text/text-decode-from-url.ts +++ b/src/backend/variables/builtin/text/text-decode-from-url.ts @@ -10,7 +10,7 @@ const model : ReplaceVariable = { examples: [ { usage: `decodeFromUrl["Hello%20World%21"]`, - description: "Returns Hello World!" + description: `Returns "Hello World!"` } ], categories: [VariableCategory.TEXT], diff --git a/src/backend/variables/builtin/twitch/index.ts b/src/backend/variables/builtin/twitch/index.ts index 540a4ce3b..77cacd925 100644 --- a/src/backend/variables/builtin/twitch/index.ts +++ b/src/backend/variables/builtin/twitch/index.ts @@ -11,6 +11,7 @@ import rewardVariables from './reward'; import streamVariables from './stream'; import subVariables from './subs'; +import accountCreationDate from './account-creation-date'; import followAge from './follow-age'; import followCount from './follow-count'; import predictionWinningOutcomeName from './prediction-winning-outcome-name'; @@ -32,6 +33,7 @@ export default [ ...streamVariables, ...subVariables, + accountCreationDate, followAge, followCount, predictionWinningOutcomeName, diff --git a/src/backend/variables/builtin/user/index.ts b/src/backend/variables/builtin/user/index.ts index dbb812614..fde667945 100644 --- a/src/backend/variables/builtin/user/index.ts +++ b/src/backend/variables/builtin/user/index.ts @@ -1,4 +1,3 @@ -import accountCreationDate from '../twitch/account-creation-date'; import chatMessages from './chat-messages'; import isUserInChat from './is-user-in-chat'; import metadataKey from './metadata-key'; @@ -25,7 +24,6 @@ import roleVariables from './roles'; import rankVariables from './ranks'; export default [ - accountCreationDate, chatMessages, isUserInChat, metadataKey, diff --git a/src/backend/variables/builtin/utility/index.ts b/src/backend/variables/builtin/utility/index.ts index 27835a407..2f46d0bab 100644 --- a/src/backend/variables/builtin/utility/index.ts +++ b/src/backend/variables/builtin/utility/index.ts @@ -10,7 +10,6 @@ import fileLineCount from './file-line-count'; import fileName from './file-name'; import fileRead from './file-read'; import filesInDirectory from './files-in-directory'; -import getEffectQueueLength from "../metadata/effect-queue-length"; import loopCount from './loop-count'; import loopItem from './loop-item'; import quickstore from './quick-store'; @@ -31,7 +30,6 @@ export default [ fileName, fileRead, filesInDirectory, - getEffectQueueLength, loopCount, loopItem, quickstore, diff --git a/src/backend/variables/builtin/utility/video-duration.ts b/src/backend/variables/builtin/utility/video-duration.ts index 26228c150..a02944482 100644 --- a/src/backend/variables/builtin/utility/video-duration.ts +++ b/src/backend/variables/builtin/utility/video-duration.ts @@ -11,11 +11,11 @@ const model : ReplaceVariable = { description: "Attempts to retrieve video duration.", examples: [ { - usage: "videoDuration[\"path/to/video.mp4\"]", + usage: `videoDuration["path/to/video.mp4"]`, description: "Returns the duration of the video file in seconds." }, { - usage: "videoDuration[\"https://example.com/video.mp4\"]", + usage: `videoDuration["https://example.com/video.mp4"]`, description: "Returns the duration of the video file from a URL in seconds." } ],