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.
 

10 lines
271 B

module SlackMathbot
module Commands
class Calculate < Base
def self.call(data, _command, arguments)
result = Dentaku::Calculator.new.evaluate(arguments.join) || 'Got nothing.'
send_message data.channel, result.to_s
end
end
end
end