Nightbot Variables

So I’m looking for a way to use the variables $(touser) and $(query) a specific way. $(query) prints everything after a command. But I wanna make it to where if theres nothing after the command it uses $(touser) instead of $(query). Any ideas?

Ended up solving it by using $(eval) for 2 slightly different versions of the api we needed this for depending on if the situation needs $(query) or $(user) using if statements. If this made no sense to anyone I apologize very tired when replying to this.

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