im using
!addcom !example $(eval responses = $(https://pastebin.com/raw/eFScvDre)
.split(;
); + responses[Math.ceil(Math.random() * responses.length)])
and i keep getting the response of
!addcom !example NaN
what did i do wrong?
im using
!addcom !example $(eval responses = $(https://pastebin.com/raw/eFScvDre)
.split(;
); + responses[Math.ceil(Math.random() * responses.length)])
and i keep getting the response of
!addcom !example NaN
what did i do wrong?
Hiya, there’s a few things wrong, try this:
!addcom !example $(eval arr='$(urlfetch json https://pastebin.com/raw/eFScvDre)'.split(';'); arr[Math.floor(Math.random()*arr.length)])
thank you once again
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.