Command always return [Error Connecting To WebEval Service]

I created command “al2”
$(eval
var a = “$(steam Name “{{gameName}}”)”;
if(a=="[not playing a game]")
a="";a
)
i am getting always [Error Connecting To WebEval Service]. Tried replace “if” to “a.icludes” and “a.replace” same result

$(eval
var a = “$(steam Name “{{gameName}}”)”;
a
)
command works fine

$(eval var a = ‘’; a )
and
$(eval var a = “”;
if(0) {""}
else{a})
doesn’t work, but

$(eval var a = “2”;
if(0) {""}
else{a})
does

That error is displayed when the message that your command returns has length 0, a.k.a. the empty string ""

If you don’t want Nightbot to send a message, you need to make the command return " " (one space).

1 Like

Yeah, u right, but !game " " changing game to " ', i replace it to ‘\0’, so it’s work now, Thank you!
so now !game \0 returns “bla bla api error”, but it’s fine

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