parent
5c07d18682
commit
b64a55e0ce
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
import requests, os, sys
|
||||
if "WAPIKEY" in os.environ:
|
||||
if not "WAPIKEY" in os.environ:
|
||||
print("MeowNexUS requires the WAPIKEY environment variable for this command to function.")
|
||||
sys.exit(1)
|
||||
query = requests.get("http://api.weatherapi.com/v1/current.json?key=" + os.environ["WAPIKEY"] + "&q=" + " ".join(sys.argv[3:])).json()
|
||||
|
|
Loading…
Add table
Reference in a new issue