Default $query unless given input

Hello! I’d like to setup the !weather command to default to my current city unless given input after.

Is this possible?


!addcom -cd=5 !weather $(weather $(eval decodeURIComponent(`$(querystring)`)||`DEFAULT_SEARCH`)) 

Replace DEFAULT_SEARCH with your city name.


Thank you!! that fixed it.

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