nightbot urlfetch with body/arguments?

Asked Feb 8, 2022·1 reply·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I want to make a translate command using the libreTranslate API.
This API requires 3 arguments as the body when the request is sent.
As I understand it, nightbot only allows $(urlfetch) and no fetch/ajax/xhr... so how can I send an API request with a body using urlfetch?
Thanks in advance 🙂

1 reply

You can not do that with just nightbot however if you call to your own api to make the call for you that could work.