lita-pebbles 0.1.5 → 0.1.6
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/pebbles.rb +8 -0
- data/lib/lita/pebbles/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7574b87f1d7376e458263453ef0c3643e7c6515
|
4
|
+
data.tar.gz: b32e1521a4ce05ce3d9eef439f3aa3b5f1f79210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a3b4038f58a5a5a67f16ede27f918809fd206159a38369ca30c416ec2ae7b3932aa09f8ab12ab093a582219f86201b695d8348b438ae0f83a459fa8d8cf80e9
|
7
|
+
data.tar.gz: a07b071b73147ff5a5e82f9d295ab66d62fcecfa6b771d44cf32a5723e60e04c365806fefd4bab272bc60673a922e20ec0b7d5fcfde6a227510ebaab37709d91
|
@@ -52,6 +52,14 @@ module Lita
|
|
52
52
|
return if rand(2) == 0
|
53
53
|
response.reply response.matches[0]
|
54
54
|
end
|
55
|
+
|
56
|
+
route /^tori\s+(\S.*)+/, :tori, command: false,
|
57
|
+
help: { "tori [message]" => "( ⁰⊖⁰)/)[ message ]/)" }
|
58
|
+
def tori(response)
|
59
|
+
word = response.matches[0][0]
|
60
|
+
response.reply_without_mention "( ⁰⊖⁰)/)[ #{word} ]/)"
|
61
|
+
end
|
62
|
+
|
55
63
|
end
|
56
64
|
Lita.register_handler(Pebbles)
|
57
65
|
end
|
data/lib/lita/pebbles/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-pebbles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|