why does urlfetch remove the spaces when calling the quotes api?

Hey @gamanlogiz!

Okay, a few things first:

  • the quote API isn’t made by Nightdev,
  • with your command here you try to output the entire quote list in the chat, Twitch chat’s limit is 500 characters, so with such command you’ll end up reaching an error very soon.

Now, why does the spaces appear to be removed?
They’re not, in fact there isn’t spaces in the output of the API, if you open the link you’re trying to fetch in your browser, you’ll notice that every quote is on a new line, and since Twitch chat doesn’t support new lines, it puts everything on a single line. Nightbot has nothing to do with the presence or absence of spaces here, it’s a combination of how the API is built and how Twitch chat works.