From c2519b3376342c4d90655b73bb062ecbd5f11a36 Mon Sep 17 00:00:00 2001 From: Daniel Muckerman Date: Sun, 17 Jan 2016 22:50:16 -0500 Subject: [PATCH] Test attachments --- slack-pixiv/commands/pixiv.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slack-pixiv/commands/pixiv.rb b/slack-pixiv/commands/pixiv.rb index 71b643b..01751dc 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -5,7 +5,9 @@ module SlackMathbot match /pixiv\.net(?.*)$/ 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