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.

16 lines
315 B

  1. module SlackMathbot
  2. module Commands
  3. class Base
  4. def self.send_message(channel, text)
  5. Slack.chat_postMessage(channel: channel, text: text)
  6. end
  7. def self.logger
  8. @logger ||= begin
  9. $stdout.sync = true
  10. Logger.new(STDOUT)
  11. end
  12. end
  13. end
  14. end
  15. end