Help being able to use @ in a command

Asked Jun 9, 2020·2 replies·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

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!

2 replies

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.png