parent
b64a55e0ce
commit
5eb3573165
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue