2016-04-14 18:35:28 +00:00
|
|
|
class Webhooks::Slack::ConversationStartedOnMap < Webhooks::Slack::Base
|
|
|
|
def text
|
|
|
|
"There is a live conversation starting on map *#{event.map.name}*. #{view_map_on_metamaps('Join in!')}"
|
|
|
|
end
|
2016-07-26 00:14:23 +00:00
|
|
|
# TODO: it would be sweet if it sends it with the metacode as the icon_url
|
2016-04-14 18:35:28 +00:00
|
|
|
|
|
|
|
def attachment_fallback
|
2016-07-26 00:14:23 +00:00
|
|
|
'' # {}"*#{eventable.name}*\n#{eventable.description}\n"
|
2016-04-14 18:35:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def attachment_title
|
2016-07-26 00:14:23 +00:00
|
|
|
'' # proposal_link(eventable)
|
2016-04-14 18:35:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def attachment_text
|
2016-07-26 00:14:23 +00:00
|
|
|
'' # "#{eventable.description}\n"
|
2016-04-14 18:35:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def attachment_fields
|
|
|
|
[{
|
2016-07-26 00:14:23 +00:00
|
|
|
title: 'nothing',
|
|
|
|
value: 'nothing'
|
|
|
|
}] # [motion_vote_field]
|
2016-04-14 18:35:28 +00:00
|
|
|
end
|
|
|
|
end
|