How to fix wrong response from custom command - YouTube

Asked Jun 25, 2021·2 replies·Last activity 5 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've created a custom command

$(urlfetch json https://golfoscarromeo.com.br/flights/index.php?numero=$(querystring))

if i run https://golfoscarromeo.com.br/flights/index.php?numero=0506 on browser, i got it

Voo DLH 0506 [Frankfurt] estimado para pousar hoje às 04:40 e o desembarque previsto para ocorrer no Terminal (T3) e sua bagagem estará disponível na esteira 304

But when i run this on YouTube channel, i got this

Nightbot
​Voo DLH 0506 [Frankfurt] estimado para pousar hoje às 04:40 e o desembarque previsto para ocorrer no Terminal (T3) e sua bagagem estará disponível na esteira 304<!--const fs = require('fs');--><!--va

I'd like to know how to remove <!--const fs = require('fs');--><!--va from my response.

Eduardo

2 replies

Nightbot will simply include all text in the request in plaintext. If your response includes html like comments then nightbot will include them as well. They'll need to be removed from your response from the custom api.

Thks.. it works after removed all html/javascript code