Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am precipice on github.
  • I am precipice (https://keybase.io/precipice) on keybase.
  • I have a public key ASCQpR7cYxVbRg5Cv4roj4M_28rRfGqbYCJCtswpSUiSZAo

To claim this, I am signing this object:

@precipice
precipice / announce.rb
Created February 22, 2016 06:14
Announcing a session via the Slack API
def announce
users = @proposal.votes_for.up.by_type(Person).voters.map {|p| "<@#{p.slug}>" }.to_sentence.html_safe
text = "#{users}: #{params[:announcement]}"
client = Slack::Client.new(token: current_person.slack_access_token)
response = client.chat_postMessage channel: "#fiascon", text: text, as_user: true
respond_to do |format|
if response["ok"]
format.json { render json: [], status: :created }

Keybase proof

I hereby claim:

  • I am precipice on github.
  • I am precipice (https://keybase.io/precipice) on keybase.
  • I have a public key whose fingerprint is 74E8 6CEC 0D52 2E61 5119 E90D C53D 102C CF1A 0206

To claim this, I am signing this object: