lib/slack/smart-bot/comm/event_hello.rb in slack-smart-bot-1.9.1 vs lib/slack/smart-bot/comm/event_hello.rb in slack-smart-bot-1.9.2
- old
+ new
@@ -14,10 +14,10 @@
version_message = ""
if Gem::Version.new(version_remote) > Gem::Version.new(VERSION)
version_message = ". There is a new available version: #{version_remote}."
end
if (!config[:silent] or ENV['BOT_SILENT'].to_s == 'false') and !config.simulate
- ENV['BOT_SILENT'] = 'true' if config[:silent] == 'true' and ENV['BOT_SILENT'].to_s != 'true'
+ ENV['BOT_SILENT'] = 'true' if config[:silent] and ENV['BOT_SILENT'].to_s != 'true'
respond "Smart Bot started v#{VERSION}#{version_message}\nIf you want to know what I can do for you: `bot help`.\n`bot rules` if you want to display just the specific rules of this channel.\nYou can talk to me privately if you prefer it."
end
@routines.each do |ch, rout|
rout.each do |k, v|
if !v[:running] and v[:channel_name] == config.channel
\ No newline at end of file