lita-alexa-news-recorder 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/alexa_news_recorder.rb +6 -17
- data/lita-alexa-news-recorder.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bc70241db6de24046b13c937f79da6ce4f08a44
|
4
|
+
data.tar.gz: 3e0bc45d6b83c1863831541f56be7a646755f388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 057781ccf7501a045642c3247b6fafba0cdca786d092a3c823fc442f71e1eba5762b3840e8955a92fcb647f0fd74a24243dd81ecad79f81b6e3080bda45a8441
|
7
|
+
data.tar.gz: d3d965a8acad466776dd4845737bce8e5ba1d56be8888487306ef0d7f3d7c14b6a99902352f00ce0d2510647ba9f88b0d60fcc14b658ac3a7546cf0783cc17af
|
@@ -19,7 +19,7 @@ module Lita
|
|
19
19
|
|
20
20
|
robot.trigger(:save_alexa_message, username: 'Alexa News Recorder', message: message)
|
21
21
|
|
22
|
-
response.write JSON.dump(
|
22
|
+
response.write JSON.dump(alexa_response)
|
23
23
|
end
|
24
24
|
|
25
25
|
def check_for_publisher!
|
@@ -36,33 +36,22 @@ module Lita
|
|
36
36
|
value
|
37
37
|
end
|
38
38
|
|
39
|
-
def
|
39
|
+
def alexa_response(message)
|
40
40
|
{
|
41
41
|
"version": "1.0",
|
42
42
|
"sessionAttributes": {
|
43
|
-
"supportedHoriscopePeriods": {
|
44
|
-
"daily": true,
|
45
|
-
"weekly": false,
|
46
|
-
"monthly": false
|
47
|
-
}
|
48
43
|
},
|
49
44
|
"response": {
|
50
45
|
"outputSpeech": {
|
51
46
|
"type": "PlainText",
|
52
|
-
"text": "
|
47
|
+
"text": "Added your message to Lita's flash briefing: #{message}"
|
53
48
|
},
|
54
49
|
"card": {
|
55
50
|
"type": "Simple",
|
56
|
-
"title": "
|
57
|
-
"content": "
|
51
|
+
"title": "Recorded flash message",
|
52
|
+
"content": "Added your message to Lita's flash briefing: #{message}"
|
58
53
|
},
|
59
|
-
"
|
60
|
-
"outputSpeech": {
|
61
|
-
"type": "PlainText",
|
62
|
-
"text": "Can I help you with anything else?"
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"shouldEndSession": false
|
54
|
+
"shouldEndSession": true
|
66
55
|
}
|
67
56
|
}
|
68
57
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-alexa-news-recorder"
|
3
|
-
spec.version = "0.1.
|
3
|
+
spec.version = "0.1.4"
|
4
4
|
spec.authors = ["Daniel J. Pritchett"]
|
5
5
|
spec.email = ["dpritchett@gmail.com"]
|
6
6
|
spec.description = "Records voice memos via Alexa and transcribes them for publishing to an Alexa Flash Briefing"
|