Help with !weather translation

Hey @leonxnez and @snattanzi!

It seems to me your issue is mostly the lack of space to write the code, right?

To answer your question, yes, you can use Pastebin to expand your code, here’s how to do it:

$(eval w='$(weather $(query))'; $(urlfetch json https://pastebin.com/raw/XXXXXXXXX))

And in your paste:

w.replace().replace().replace().[...].replace()

Since you’ll have more room to write the code, I recommend using regex in the replace to match expressions regardless of the capitalization:

.replace(/Text tO replAce/i, 'replacing text')