-
Notifications
You must be signed in to change notification settings - Fork 0
Actions
- slack::chat::send
- slack::channel::list
- slack::channel::invite
- slack::channel::history
- slack::channel::topic
- slack::user::list
- slack::group::create
- slack::group::invite
This is an action to send a message to slack. Required parameters are token, channel, and text.
-
token (required, default: nil): Your token there.
-
channel (required, default: nil): You can use channel names, alternatively you can get your channel id there.
-
text (required, default: nil): The content of your message.
Output is a ruby hash.
listen 'timer::every', minutes:1 do |post_info|
run 'slack::chat::send', :token => '<token>', :channel => '<channel>', :text => 'Save the Whales'
endThis is an action to list out all your slack channels. Required parameter is token.
- token (required, default: nil): Your token there.
Output is a ruby hash.
listen 'timer::every', minutes:1 do |post_info|
run 'slack::channel::list', :token => '<token>'
endThis is an action to send a message to slack. Required parameters are token, channel, and text.
-
token (required, default: nil): Your token there.
-
channel (required, default: nil): You can use channel names, alternatively you can get your channel id there.
-
user (required, default: nil): You can user names, alternatively you can get your user id there.
Output is a ruby hash.
listen 'timer::every', minutes:1 do |post_info|
run 'slack::channel::invite', :token => '<token>', :channel => '<channel>', :user => '<user>'
endThis is an action to list out the message history of a slack channel. Required parameters are token and channel.
-
token (required, default: nil): Your token there.
-
channel (required, default: nil): You can use channel names, alternatively you can get your channel id there.
Output is a ruby hash.
listen 'timer::every', minutes:1 do |post_info|
run 'slack::channel::history', :token => '<token>, :channel => '<channel>'
endThis is an action to list out the message history of a slack channel. Required parameters are token and channel.
-
token (required, default: nil): Your token there.
-
channel (required, default: nil): You can use channel names, alternatively you can get your channel id there.
-
topic (required, default: nil): What your topic will change to.
Output is a ruby hash.
listen 'timer::every', minutes:1 do |post_info|
run 'slack::channel::topic', :token => '<token>, :channel => '<channel>', :topic => '<topic>'
end