As a minimally experienced C#'er without much nuanced javascript knowledge beyond slamming shit together till it works, I think this might be slightly beyond my fruitless smacking attempts.
I’m trying to make a command that takes the $(query) and alternates capitalizing to do some light mocking. BaSiCaLlY jUsT tHiS MeMe BuT WiTh WhAtEvEr SoMeOnE eLsE sAiD.
This is where I’m at, problem might be something silly formatted, or something just isn’t doable by nightbot. At any rate if there’s any thoughts or enlightening knowledge that can be bestowed I would be very grateful.
Currently receiving an “Unexpected Identifier” error
$(eval message=` `;
input=`$(querystring)`;
newMessage=` `;
for (int i = 0; i < input.length; i++)
{
if ((i%2)==0){message+= input.charAt(i).toUpperCase();}
else{message+= input.charAt(i).toLowerCase();}
newMessage+=message;
})
In the command I replace spaces with a , if you want to remove it, simply change the last line of code from `:clap: ${q.join(``).replace(/ /g,` :clap: `)} :clap:`; to q.join(``).