Shoutout Command that removes @ from user input

Is there a way to create (or edit an existing) shoutout command that allows the mods to use @username as the user input and the link still be correct?

Example of the shoutout command I already have (yes it does work):

Command: !shoutout
Command response: Please take a moment to check out some [twitch] action with [touser]. Give them a follow at twitch.tv/[touser]

In chat use:
!shoutout username

Please take a moment to check out some Fortnite action with username. Give them a follow at twitch.tv/username

Example of what I am looking for (in chat use):

!shoutout @username

The response should be the same as the response to !shoutout username.

The @ should be optional but shouldn’t show up in the response if it is used.

You can use eval to remove @ from the input:

$(twitch $(eval `$(touser)`.replace(/@/g,"")) "Please take a moment to check out some {{game}} action with {{displayName}}. Give them a follow at {{url}}")
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.