diff --git a/slack-mathbot/commands/about.rb b/slack-mathbot/commands/about.rb index e4f0620..ebb997a 100644 --- a/slack-mathbot/commands/about.rb +++ b/slack-mathbot/commands/about.rb @@ -4,7 +4,7 @@ module SlackMathbot match(/^(?\w*)$/) def self.call(client, data, _match) - send_message_with_gif client, data.channel, SlackMathbot::ABOUT, 'math' + send_message client, data.channel, SlackMathbot::ABOUT end end end diff --git a/slack-mathbot/commands/calculate.rb b/slack-mathbot/commands/calculate.rb index 0168a80..d39aaea 100644 --- a/slack-mathbot/commands/calculate.rb +++ b/slack-mathbot/commands/calculate.rb @@ -5,6 +5,7 @@ module SlackMathbot command 'calculate' def self.call(client, data, match) + send_message client, data.channel, match result = Dentaku::Calculator.new.evaluate(match[:expression]) if match.names.include?('expression') result = result.to_s if result if result && result.length > 0 diff --git a/slack-mathbot/commands/help.rb b/slack-mathbot/commands/help.rb index 752566d..6ed20c5 100644 --- a/slack-mathbot/commands/help.rb +++ b/slack-mathbot/commands/help.rb @@ -2,7 +2,7 @@ module SlackMathbot module Commands class Help < SlackRubyBot::Commands::Base def self.call(client, data, _match) - send_message_with_gif client, data.channel, 'See https://github.com/dblock/slack-mathbot, please.', 'help' + send_message client, data.channel, 'See https://github.com/dblock/slack-mathbot, please.' end end end