Protection · Value
Repeated letters
The longest run of one character in a text, like the 9 y's in heyyyyyyyyy.
text.longest_repeat
In a flow
“Works out repeated letters whenever a step wired to it needs the answer.”
Message posted → If Repeated letters is over 10 → Delete message.
What it does
The longest run of one character in a text, like the 9 y's in heyyyyyyyyy. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 2 values later steps can use. Find it under Protection in the palette.
When to use it
Use it to keep the server safe: the longest run of one character in a text, like the 9 y's in heyyyyyyyyy.
When not to
For a value that never changes, type it into the setting instead of wiring a node.
Typical wiring
Sockets: settings you can wire
- Text Text
-
The text to check, like {message.content}.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, the step runs without it.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more
Values it gives
- Longest run Number
-
How many times in a row. e.g. 9
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more
- Character Text
-
Which character. e.g. y
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more