Browse Source

Testing a thing

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

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

@ -1,12 +1,12 @@
# coding: utf-8 # coding: utf-8
module SlackMathbot module SlackMathbot
module Commands module Commands
class Pixiv < SlackRubyBot::Commands::Base
class Pixiv < SlackRubyBot::Bot
match /pixiv\.net(?<url>.*)$/ do |client, _data, _match| match /pixiv\.net(?<url>.*)$/ do |client, _data, _match|
#asdf #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
end end

Loading…
Cancel
Save