ruboty-slack_reaction_added 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c402cfa0d292930326bd1b63288be0a8907dfcb5a1a66abeed86721183ae6aae
|
4
|
+
data.tar.gz: 8f9c277ef68f9e10402f629c43ccf0fe2e8f5a6a52ffa726d4100872b187499b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec7062f2202edd6ec9d42442fceaebda9791b83c6fe808b05eef977369b4d688ce506d99c9f92eba4e57a80802aabf14faa308db6e31fb57968333ff810f99c3
|
7
|
+
data.tar.gz: 625dbe45b7f586b1c9aee88607cd334b9d0ffdce9a06a2cacdea5240cdc0475e102903aecec3de25920b30d3f97de7f8fbf93d03c23dc8cfbbd6d70ac5b8e4e7
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
module Ruboty
|
3
|
+
module SlackReactionAdded
|
4
|
+
module Actions
|
5
|
+
class ReactionName < Ruboty::Actions::Base
|
6
|
+
|
7
|
+
def call
|
8
|
+
unless message.reaction_by == Ruboty::Robot.name
|
9
|
+
message.reply(":#{message.reaction}: => `:#{message.reaction}:`")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'ruboty/slack_reaction_added/actions/permalink.rb'
|
2
|
+
require 'ruboty/slack_reaction_added/actions/reaction_name.rb'
|
2
3
|
require 'ruboty/slack_reaction_added/actions/reaction_ping.rb'
|
3
4
|
require 'ruboty/slack_reaction_added/actions/thumbup.rb'
|
4
5
|
|
@@ -12,6 +13,11 @@ module Ruboty
|
|
12
13
|
description: 'ping allow reaction',
|
13
14
|
allow_reaction: true
|
14
15
|
|
16
|
+
on /reaction name\z/,
|
17
|
+
name: 'reaction_name',
|
18
|
+
description: 'reaction name say on readciont_added',
|
19
|
+
reaction_only: true
|
20
|
+
|
15
21
|
on /.*\z/,
|
16
22
|
name: 'thumbup',
|
17
23
|
description: 'thumbup',
|
@@ -28,6 +34,10 @@ module Ruboty
|
|
28
34
|
Ruboty::SlackReactionAdded::Actions::ReactionPing.new(message).call
|
29
35
|
end
|
30
36
|
|
37
|
+
def reaction_name(message)
|
38
|
+
Ruboty::SlackReactionAdded::Actions::ReactionName.new(message).call
|
39
|
+
end
|
40
|
+
|
31
41
|
def thumbup(message)
|
32
42
|
Ruboty::SlackReactionAdded::Actions::Thumbup.new(message).call
|
33
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-slack_reaction_added
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- srz_zumix
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- docker-compose.yml
|
144
144
|
- lib/ruboty/slack_reaction_added.rb
|
145
145
|
- lib/ruboty/slack_reaction_added/actions/permalink.rb
|
146
|
+
- lib/ruboty/slack_reaction_added/actions/reaction_name.rb
|
146
147
|
- lib/ruboty/slack_reaction_added/actions/reaction_ping.rb
|
147
148
|
- lib/ruboty/slack_reaction_added/actions/thumbup.rb
|
148
149
|
- lib/ruboty/slack_reaction_added/extension/action.rb
|