Changing nightbots reply

I have a weather command set up in chat
when a location isnt provided, nightbot replies with “No location provided”, is it possible to edit this reply and customise it?

Hey @lucy_irish06!

Yes you can, using $(eval):

$(eval w = '$(weather $(query))'; w === 'No location provided' ? 'YOUR_REPLACEMENT_RESPONSE' : w;)

Ahh thank you so much! :slight_smile:

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