How to get Nightbot to use Javascript Code

So… I have been searching the internet for a few hours and no one makes it simple to find a solution for code EVER… So I’m making this to get direct help from someone who ACTUALLY knows that what fuck they are talking about haha! Anywho, I have some code that selects 5 random items from a list and I need Nightbot to be able to use that code when someone types !makelevel in chat. But I can’t figure out what I have to do. I feel like it has something to do with APIs or URL fetch or something. Help please! Thank you

Nightbot is not able to parse Javascript as that’s client sided. You need to use something server sided, such as PHP. You can use my thread for an example of how to do this. if you need a boost in the right direction.

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