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?
2 replies
Polar Cat
Hey @Dapper Raccoon!
Yes you can, using $(eval):
$(eval w = '$(weather $(query))'; w === 'No location provided' ? 'YOUR_REPLACEMENT_RESPONSE' : w;)
Dapper Raccoon
Polar Cat said: $(eval w = '$(weather $(query))'; w === 'No location provided' ? 'YOUR_REPLACEMENT_RESPONSE' : w;)