I’m setting up commands for StreamElements on a Twitch channel. I’m looking to create a !shoutout command, which I can do easily enough through the following:
Check out ${1}, they are playing ${game ${1}} at https://twitch.tv/${1}!
An example of the current functionality is: Input: !so Test123 Output: Check out Test123, they are playing Some_Game_Here at Twitch!
However, I would like to edit the command so that it handles the use of the “stumbler” symbol better as shown below:
Input: !so @Test123 Current output: Check out @Test123, they are playing Some_Game_Here at Twitch! Desired output: Check out Test123, they are playing Some_Game_Here at Twitch!
Currently the “@” symbol is included and makes the Twitch link output invalid. On Nightbot I was able to do something like $(eval decodeURIComponent(
$(querystring)).split(
)[0].replace(/@/g,``)||
$(user))
and have it replace the @ symbol, but it doesn’t seem like StreamElements has functionality for parsing that right in the command itself.
Does anyone know of a work-around? I would appreciate any help!