Latest Anything List

Description

This small extension serves as a recent List saver. For example, if you want to save the latest Followers, Cheers, or any info into a list, you can use this action and duplicate it. Will be saved as a global variable (List<string>) and as pure text in the arguments.

Why is it stored as a List<string> instead of directly as the pure text with a comma separator? In case someone would want to reverse the order of the list midway, which would have been done by setting an additional argument in the action, there won’t be any issues and there won’t be an additional global variable needed to save the “reverse” state of that list.

Import Code

Generic Latest x List by pwnyy.sb (2.8 KB)

Installation

In Streamer.bot click the Import button in the top menu. Drag the .sb file into the Import String field.

After Import

In your [Generic] Latest X List action you can define whatever Trigger you want to use. The import will have the Twitch Follow Trigger in it. You may choose any other. If you want to create multiple lists then you can simply duplicate this action and make sure to configure it as well.

Configuration

In the action you will be able to define what name your list will have as a global variable, define the number of elements it will have, and what information should be stored in it.

Set Argument Description
latestListName Name of your list, to prevent overwriting a list that you already made with this action
latestAmount Amount of elements the list will have
infoArgument Info which should be stored in the list. Example: %user%

Your list will be saved as an actual List<string> with the name pwnLatest_latestListName_List in the global variables.

Additional Arguments:

Two additional arguments will be created to be used inside the action.

Argument Description
latest_latestListName_ListReverse The reversed List as a normal text with comma as separator.
Example: latestUser3, latestUser2, latestUser1
latest_latestListNames_List The normal List as text with comma as separator.
Example: latestUser1, latestUser2, latestUser3

You may save these arguments as global variables as well as the normal text that can be used in a chat message, for example. Do this with the Core > Globals > Global (Set) sub-action. Select “Argument” and type in the argument name shown in the list above. Make sure you don’t overwrite the actual list

1 Like