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.

13 lines
335 B

  1. module SlackMathbot
  2. module Commands
  3. class Echo < SlackRubyBot::Commands::Base
  4. command 'echo'
  5. def self.call(client, data, match)
  6. send_message client, data.channel, match[:expression]
  7. rescue StandardError => e
  8. send_message client, data.channel, "Sorry, #{e.message}."
  9. end
  10. end
  11. end
  12. end