Weather functionality

Asked Nov 12, 2020·2 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I'm looking to return the weather for a predetermined location if !weather is entered with no city name and the named city if its used !weather Detroit.

I can't figure it out

2 replies

@Sturdy Butterfly Heya, welcome to the community. Try this:

!addcom -cd=5 !weather $(weather $(eval if (`$(query)` == ``) { `detroit` } else { `$(query)` }))

Regards

Ty, I'll try that when I get home