Nightbot access urlfetch json response array

Hi I am new to nightbot

I am playing with the google translate api and have setup a test command that works.

The issue is the response i get from google is an array -

Nightbot: [[[“beer”,“olut”,2]],“fi”]

What is the appropriate way to access / manipulate the response, if i can not do it serverside?

Can i run an alias command on the resonse?


There is no way that i can think of to do what you need. Sadly nightbot urlfetches reads the exact data it is given, it cannot manipulate the data with any of its base features and i do not know of a way with other customapi’s to read specific json elements (though that is an interesting idea).

1 Like

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