Bulbul
July 20, 2023, 4:23am
1
Hi everyone
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)]}
And that’s what i did:
$(eval const responses = [ “مليووون بالميه اي”, “يب”, “مستحيييل اكيد لوء”, “طفشششت فكوووني”, “كل شي جايز”, “لووو قلت رح تزعلو”, “سر مارح اقولك”, “لاارى ولااسمع ولااتكلم ومالي خلق”, “اكييييد”, “مااادري مااادري”, “لا”, “مااظن”, “اظن ممكن”, “لاتغثوني”]; u== “@Bulbul_n ”? “كل اللي تقوليه صح” : responses[Math.floor(Math.random() * responses.length)]
Can anyone help me with this😔
Bulbul
July 20, 2023, 4:26am
2
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
Bulbul
August 1, 2023, 5:33am
5
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
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)
system
Closed
August 16, 2023, 11:16am
9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.