lita-talk 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/lita/handlers/talk.rb +1 -2
- data/lita-talk.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: 2dbad491d64f14caccd1d51a3a926548c334dab8
|
4
|
+
data.tar.gz: 584310954d12b7451309a093ce6c09e6c3269bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c0c668925d4a9f7461d635905cabf9120cd7fafb376f2f7a3908746006263bd654b1aa9d498093ad9059bd2a953130f7bd8df6769378fa26b316eda0918e0d5
|
7
|
+
data.tar.gz: e793654aa186ccebdea8805ba0811410b04489a70edcbb2a9dfdca81e25829ac67755e833124854f3001a9325a5208c7d5c844bab4151ef71d416bf094c9d315
|
data/README.md
CHANGED
@@ -19,13 +19,13 @@ gem "lita-talk"
|
|
19
19
|
Lita.configure do |config|
|
20
20
|
...
|
21
21
|
# required
|
22
|
-
|
22
|
+
config.handlers.talk.docomo_api_key = 'xxx'
|
23
23
|
|
24
24
|
# optional (https://dev.smt.docomo.ne.jp/?p=docs.api.page&api_name=dialogue&p_name=api_1#tag01)
|
25
25
|
# 20 : 関西弁キャラ
|
26
26
|
# 30 : 赤ちゃんキャラ
|
27
27
|
# 指定なし : デフォルトキャラ
|
28
|
-
|
28
|
+
config.handlers.talk.docomo_character_id = 20
|
29
29
|
end
|
30
30
|
```
|
31
31
|
|
data/lib/lita/handlers/talk.rb
CHANGED
@@ -15,8 +15,7 @@ module Lita
|
|
15
15
|
next nil unless handler.respond_to?(:routes)
|
16
16
|
handler.routes
|
17
17
|
end.flatten.compact.each do |route|
|
18
|
-
|
19
|
-
return if response.message.body.match(route.pattern)
|
18
|
+
return if response.matches.flatten[0].match(route.pattern)
|
20
19
|
end
|
21
20
|
|
22
21
|
context = Lita.redis.get context_key(response)
|
data/lita-talk.gemspec
CHANGED