Browse Source

Remove check?

master
Daniel Muckerman 9 years ago
parent
commit
bc8e44bc59
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      slack-mathbot/commands/calculate.rb

+ 2
- 1
slack-mathbot/commands/calculate.rb View File

@ -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

Loading…
Cancel
Save