So, for example, it should turn out: thenoirman, mate, you're a legend!
I've been trying to get it to work but it keeps coming back with "thenoirman, mate, you’re Unexpected identifier!" instead. Sadge. Anyone know what's wrong?
You also already created the array in your Pastebin, the code above would work if the content of your paste was like this: some compliment, another compliment, the last compliment Note that spliting with a comma isn't the best option, because if your compliment contains a comma, it'll be cut in half, prefer another character that's never used in your list of elements. With that said, since creating the array in the paste makes life harder, and that we want to avoid using the comma to split the compliments, I suggest you replace the content of your paste by the following:
Thanks so much for responding, Emily! Really appreciate it. Before you responded, I was tinkering some more and managed to get it to work with this code:
To be honest, I don't know coding at all or Javascript but this worked for some reason. BUT... I've got a bit of a new problem now. For some reason the command responds very slowly or doesn't work sometime. You wouldn't happen to know what would be the reason?
Quirky Fox
Ok firstly the -1 in your command is technically unnecessary and is making it impossible to get the last result in the pastebin.
As for the not responding that’s most likely due to high cooldown and the delay you probably can’t do anything about and could be due to whatever $(eval) is hosted in being slow at the time.
Winter Octopus
Super cool. Really grateful for the help and response!