Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated slack contact file usage description #240

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions lib/god/contacts/slack.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Send a message to a Slack channel
#
# account - The name of your Slack account (visible in URL, e.g. foo.slack.com)
# token - The token of the webhook created in Slack
# channel - The name of the channel to send the message to, prefixed with #
# url - Your webhook's url
# channel - The name of the channel to send the message to (prefixed with # for public channels)
# notify_channel - Whether to send an "@channel" in the message, to alert everyone in the channel
# format - An optional format string to change how the alert is displayed
# username - Name to display in the message (i.e. 'God')
# emoji - Send a custom emoji to attach the name (i.e. ':godmode:')

require 'net/http'
require 'uri'
Expand Down Expand Up @@ -95,4 +96,4 @@ def request(text)
end

end
end
end