Browse Source

Remove check?

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

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

@ -5,7 +5,7 @@ module SlackMathbot
command 'calculate' command 'calculate'
def self.call(client, data, match) 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]) result = Dentaku::Calculator.new.evaluate(match[:expression])
#if match.names.include?('expression') #if match.names.include?('expression')
result = result.to_s if result result = result.to_s if result

Loading…
Cancel
Save