From 8ed18c45649b14e4a8440e6d152202f56892dbb2 Mon Sep 17 00:00:00 2001 From: Daniel Muckerman Date: Fri, 9 Oct 2015 16:36:26 -0400 Subject: [PATCH] testing --- slack-mathbot/commands/about.rb | 2 +- slack-mathbot/commands/calculate.rb | 1 + slack-mathbot/commands/help.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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