examples/weather/weatherbot.rb in slack-ruby-bot-0.5.5 vs examples/weather/weatherbot.rb in slack-ruby-bot-0.6.0
- old
+ new
@@ -1,9 +1,9 @@
require 'slack-ruby-bot'
class WeatherBot < SlackRubyBot::Bot
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."
+ client.say(channel: data.channel, text: "The weather in #{match[:location]} is nice.")
end
end
WeatherBot.run