examples/weather/weatherbot.rb in slack-ruby-bot-0.7.0 vs examples/weather/weatherbot.rb in slack-ruby-bot-0.8.0

- old
+ new

@@ -1,6 +1,8 @@ require 'slack-ruby-bot' +SlackRubyBot::Client.logger.level = Logger::WARN + class WeatherBot < SlackRubyBot::Bot match(/^How is the weather in (?<location>\w*)\?$/i) do |client, data, match| client.say(channel: data.channel, text: "The weather in #{match[:location]} is nice.") end end