lita-talk 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/lita/handlers/talk.rb +2 -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: 38b90ebfb227ce96dc0b0c89dac125a6cf00cf72
|
4
|
+
data.tar.gz: 84be5598b89b6341efefaafc42e1945a89f59442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f903894538c30335b9e82557994acd2025e8484bfb8633c4a1f6e85c5620480e24cbf6ad99bb70ac71a7daa978c471c4e7ae931e4716dc5f5dddc77b147a215
|
7
|
+
data.tar.gz: 08a43863c82d660bf6d497a28504506a64c0e2afcc5c0eef1dfcbaab0d16aa094364082767c69b2ba74a21f8069fdc297d73dae12c332acb74d68d7cba1e337c
|
data/README.md
CHANGED
data/lib/lita/handlers/talk.rb
CHANGED
@@ -4,7 +4,7 @@ module Lita
|
|
4
4
|
module Handlers
|
5
5
|
class Talk < Handler
|
6
6
|
config :docomo_api_key, type: String, required: true
|
7
|
-
config :docomo_character_id,
|
7
|
+
config :docomo_character_id, required: false
|
8
8
|
|
9
9
|
route(/^(.+)/, :talk, command: true, help: {
|
10
10
|
"talk" => "Talk with you if given message didn't match any other handlers."
|
@@ -46,7 +46,7 @@ module Lita
|
|
46
46
|
def params(context)
|
47
47
|
{
|
48
48
|
context: context,
|
49
|
-
t: config.docomo_character_id,
|
49
|
+
t: Array(config.docomo_character_id).sample,
|
50
50
|
}.reject do |key, value|
|
51
51
|
value.nil?
|
52
52
|
end
|
data/lita-talk.gemspec
CHANGED