From 487e2f4f6e223462c4638d687f645aa26f87a4d9 Mon Sep 17 00:00:00 2001 From: Daniel Muckerman Date: Fri, 9 Oct 2015 19:18:00 -0400 Subject: [PATCH] Remove check? --- slack-mathbot/commands/calculate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slack-mathbot/commands/calculate.rb b/slack-mathbot/commands/calculate.rb index 9a84696..47642e9 100644 --- a/slack-mathbot/commands/calculate.rb +++ b/slack-mathbot/commands/calculate.rb @@ -5,7 +5,7 @@ module SlackMathbot command 'calculate' def self.call(client, data, match) - send_message client, data.channel, [:expression] + send_message client, data.channel, expression result = Dentaku::Calculator.new.evaluate(match[:expression]) #if match.names.include?('expression') result = result.to_s if result