A Slack Bot that pulls Pixiv information and posts the full image(s) into Slack, with iOS shortcuts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
347 B

9 years ago
  1. require 'slack-ruby-bot'
  2. module WeatherBot
  3. class App < SlackRubyBot::App
  4. end
  5. class Weather < SlackRubyBot::Commands::Base
  6. match(/^How is the weather in (?<location>\w*)\?$/i) do |client, data, match|
  7. send_message client, data.channel, "The weather in #{match[:location]} is nice."
  8. end
  9. end
  10. end
  11. WeatherBot::App.instance.run