Getting an issue with a command

Hi everyone :wave:t2:

First… english is not my language.
So… My problem is that i tried used a command that gives random answers but giving a Specific person a specific fixed answer but it didn’t work with me and i don’t know what’s wrong.

Thats what i tried to use:

$(eval u=$(user); r=[RANDOM_ANSWER_#1,RANDOM_ANSWER_#2, … ,RANDOM_ANSWER_#n]; u==SPECIFIC_VIEWER?FIXED_ANSWER:${r[Math.floor(Math.random()*r.length)]}:wink:

And that’s what i did:

$(eval const responses = [ “مليووون بالميه اي”, “يب”, “مستحيييل اكيد لوء”, “طفشششت فكوووني”, “كل شي جايز”, “لووو قلت رح تزعلو”, “سر مارح اقولك”, “لاارى ولااسمع ولااتكلم ومالي خلق”, “اكييييد”, “مااادري مااادري”, “لا”, “مااظن”, “اظن ممكن”, “لاتغثوني”]; u== “@Bulbul_n”? “كل اللي تقوليه صح” : responses[Math.floor(Math.random() * responses.length)]:wink:

Can anyone help me with this😔

There is a mistake with the copy/paste that ; ) gets an emoji

help: try the diffrent live atream with that. if it isn’t working message me for more.

i’ve never had any luck with that format, but this should work…

$(eval u=“$(user)”; r=[RANDOM_ANSWER_#1,RANDOM_ANSWER_#2, … ,RANDOM_ANSWER_#n]; if(u==SPECIFIC_VIEWER){FIXED_ANSWER}else{r[Math.floor(Math.random()*r.length)]})

$(eval u=“$(user)”;r = [ “مليووون بالميه اي”, “يب”, “مستحيييل اكيد لوء”, “طفشششت فكوووني”, “كل شي جايز”, “لووو قلت رح تزعلو”, “سر مارح اقولك”, “لاارى ولااسمع ولااتكلم ومالي خلق”, “اكييييد”, “مااادري مااادري”, “لا”, “مااظن”, “اظن ممكن”, “لاتغثوني”]; if(u== “Bulbul_n”){“كل اللي تقوليه صح”}else{r[Math.floor(Math.random()*r.length)])

try that

It didn’t work… But thanx

oh, my bad, i missed a curly brace when i copy pasted…

$(eval u=“$(user)”;r = [ “مليووون بالميه اي”, “يب”, “مستحيييل اكيد لوء”, “طفشششت فكوووني”, “كل شي جايز”, “لووو قلت رح تزعلو”, “سر مارح اقولك”, “لاارى ولااسمع ولااتكلم ومالي خلق”, “اكييييد”, “مااادري مااادري”, “لا”, “مااظن”, “اظن ممكن”, “لاتغثوني”]; if(u== “Bulbul_n”){“كل اللي تقوليه صح”}else{r[Math.floor(Math.random()*r.length)]})

there, that should work

It didn’t work either

yeah, this happened the other day too… for some reason copy paste changes the quotes to a different kind of character… just delete all the quotation marks and put them back, that’ll fix it (just tried in my own instance of nightbot)

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