Update cc/weather

This commit is contained in:
Nova Cat 2025-03-15 15:50:27 -07:00
parent b64a55e0ce
commit 5eb3573165

View file

@ -1,6 +1,6 @@
import requests, os, sys
if not "WAPIKEY" in os.environ:
print("MeowNexUS requires the WAPIKEY environment variable for this command to function.")
print("MeowNexUS requires the WAPIKEY environment variable for this command to function. get one from https://weatherapi.com/")
sys.exit(1)
query = requests.get("http://api.weatherapi.com/v1/current.json?key=" + os.environ["WAPIKEY"] + "&q=" + " ".join(sys.argv[3:])).json()
weathers = {