Browse Source

Test attachments

master
Daniel Muckerman 8 years ago
parent
commit
c2519b3376
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      slack-pixiv/commands/pixiv.rb

+ 3
- 1
slack-pixiv/commands/pixiv.rb View File

@ -5,7 +5,9 @@ module SlackMathbot
match /pixiv\.net(?<url>.*)$/ do |client, _data, _match|
#asdf
client.say(channel: _data.channel, text: "Testing: http://pixiv.net#{_match[:url]}")
puts _match[:url]
#client.say(channel: _data.channel, text: "Testing: http://pixiv.net#{_match[:url]}")
client.chat_postMessage(channel: _data.channel, attachments: "[{'pretext': 'pre-hello', 'text': 'text-world'}]")
#send_message client, _data.channel, "Testing: #{_match[:url]}"
end

Loading…
Cancel
Save