From b6ce19882f5b288875012fd8331c91c3dab43653 Mon Sep 17 00:00:00 2001 From: Daniel Muckerman Date: Fri, 9 Oct 2015 18:32:45 -0400 Subject: [PATCH] Remove rules check. Live dangerously --- slack-mathbot/commands/calculate.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slack-mathbot/commands/calculate.rb b/slack-mathbot/commands/calculate.rb index 0168a80..394b628 100644 --- a/slack-mathbot/commands/calculate.rb +++ b/slack-mathbot/commands/calculate.rb @@ -5,7 +5,8 @@ module SlackMathbot command 'calculate' def self.call(client, data, match) - result = Dentaku::Calculator.new.evaluate(match[:expression]) if match.names.include?('expression') + result = Dentaku::Calculator.new.evaluate(match[:expression]) + #if match.names.include?('expression') result = result.to_s if result if result && result.length > 0 send_message client, data.channel, result