Help being able to use @ in a command

So I’ve been learning some nightbot and found an “advanced” command to be able to use the @ and shoutout a user(for like raids or whatever). I was wondering how I can tweak it so I can lazily @ someone who subbed or something.

!so command I’m referring to
!addcom -cd=5 !so $(twitch $(eval a=decodeURIComponent($(querystring));a.charAt(0)==@?a.slice(1):a) “Go check out {{displayName}} playing {{game}} at {{url}}”)

When I just tried tweaking the message in the quotes, it just says “user is offline” and doesn’t call the command properly.

Thanks in advance!

I deployed a change tonight which should help with this use case, since I’ve seen others struggle with it.

$(touser) will now strip the leading @ if there exists one.


OMG, thank you so much, this will save me some characters, this is just so great! :heart:

1 Like

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