diff --git a/slack-pixiv/commands/pixiv.rb b/slack-pixiv/commands/pixiv.rb index a822564..f0551b7 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -1,12 +1,12 @@ # coding: utf-8 module SlackMathbot module Commands - class Pixiv < SlackRubyBot::Commands::Base + class Pixiv < SlackRubyBot::Bot match /pixiv\.net(?.*)$/ do |client, _data, _match| #asdf - #client.say(channel: _data.channel, text: "Testing: #{_match[:url]}") - send_message client, _data.channel, "Testing: #{_match[:url]}" + client.say(channel: _data.channel, text: "Testing: http://pixiv.net#{_match[:url]}") + #send_message client, _data.channel, "Testing: #{_match[:url]}" end end