zetabot 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/Zeta/plugins/weather.rb +8 -5
- data/lib/Zeta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29f311e58d91926ad8d83fbe0ac23d94a09787072463f937f8a6fcc0d1249443
|
|
4
|
+
data.tar.gz: 6ec3d0bc906da344bf4398091eee2e0c9190bc4ffdf555cd5851c3700c6b6458
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94d193dbcd70da8bb93e3a93b951c2ec6fd8245dd979c684e31b31353d89f7af6aaee6fe2f63ab3b468c467058283b564f3ff4b7f30fa21bb3089adf58b280fb
|
|
7
|
+
data.tar.gz: ec1a8cf35f69a996cdbe7dbc420ec161f9d6b9fbabb8549a343586ab339a0b946bff54b7368a4e2422f15f3ab7f1a136bea4f918ea7e0b4ce4d5930f6509340f
|
data/Gemfile.lock
CHANGED
data/lib/Zeta/plugins/weather.rb
CHANGED
|
@@ -106,7 +106,7 @@ module Plugins
|
|
|
106
106
|
object_class: OpenStruct
|
|
107
107
|
)
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
info(ac.status)
|
|
110
110
|
return nil if ac.results.nil?
|
|
111
111
|
if ac.status == "OVER_QUERY_LIMIT"
|
|
112
112
|
msg.reply("Google API - Over query Limit")
|
|
@@ -162,7 +162,8 @@ module Plugins
|
|
|
162
162
|
)
|
|
163
163
|
return nil if ac.results.nil? ## Unable to locate
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
info(ac.status)
|
|
166
|
+
if ac.status == "OVER_QUERY_LIMIT"
|
|
166
167
|
msg.reply("Google API - Over query Limit")
|
|
167
168
|
return nil
|
|
168
169
|
end
|
|
@@ -200,7 +201,7 @@ module Plugins
|
|
|
200
201
|
end
|
|
201
202
|
|
|
202
203
|
# DarkSky - https://darksky.net/dev
|
|
203
|
-
def
|
|
204
|
+
def ds_src(msg,location,stored=false)
|
|
204
205
|
|
|
205
206
|
ac = JSON.parse(
|
|
206
207
|
open(URI.encode("https://maps.googleapis.com/maps/api/geocode/json?address=#{location}&key=#{Config.secrets[:google]}")).read,
|
|
@@ -208,7 +209,8 @@ module Plugins
|
|
|
208
209
|
)
|
|
209
210
|
return nil if ac.results.nil? ## Unable to locate
|
|
210
211
|
|
|
211
|
-
|
|
212
|
+
info(ac.status)
|
|
213
|
+
if ac.status == "OVER_QUERY_LIMIT"
|
|
212
214
|
msg.reply("Google API - Over query Limit")
|
|
213
215
|
return nil
|
|
214
216
|
end
|
|
@@ -269,7 +271,8 @@ module Plugins
|
|
|
269
271
|
)
|
|
270
272
|
return nil if ac.results.nil? ## Unable to locate
|
|
271
273
|
|
|
272
|
-
|
|
274
|
+
info(ac.status)
|
|
275
|
+
if ac.status == "OVER_QUERY_LIMIT"
|
|
273
276
|
msg.reply("Google API - Over query Limit")
|
|
274
277
|
return nil
|
|
275
278
|
end
|
data/lib/Zeta/version.rb
CHANGED