examples/weather/weatherbot.rb in slack-ruby-bot-0.3.1 vs examples/weather/weatherbot.rb in slack-ruby-bot-0.4.0

- old
+ new

@@ -3,11 +3,11 @@ module WeatherBot class App < SlackRubyBot::App end class Weather < SlackRubyBot::Commands::Base - match(/^How is the weather in (?<location>\w*)\?$/i) do |data, match| - send_message data.channel, "The weather in #{match[:location]} is nice." + match(/^How is the weather in (?<location>\w*)\?$/i) do |client, data, match| + send_message client, data.channel, "The weather in #{match[:location]} is nice." end end end WeatherBot::App.instance.run