justinweiss/robut — Issue #21: Robut spams the room on entering.
Author: blt
Created: 2011-11-17 23:43:21+00:00
State: open

I'm using robut 0.3.0 with the following Chatfile (information filtered to protect secrets):

# Require your plugins here
require 'robut/storage/yaml_store'

require 'robut/plugin/help'
Robut::Plugin.plugins << Robut::Plugin::Help

# Configure the robut jabber connection and you're good to go!
Robut::Connection.configure do |config|
config.jid = '...@chat.hipchat.com'
config.password = '...'
config.nick = 'Carebot Machine'
config.room = '...@conf.hipchat.com'

# Some plugins require storage
Robut::Storage::YamlStore.file = ".robut"
config.store = Robut::Storage::YamlStore

# Add a logger if you want to debug the connection
# config.logger = Logger.new(STDOUT)
end

Just the help plugin, as you can see. However, when Carebot joins the room:

Supported commands:
@carebot help - displays this message
@carebot help - displays this message
Supported commands:
Supported commands:
@carebot help - displays this message

or thereabouts. The actual number of messages varies, but it's always more than one and interleaved. It seems to me that Robut should, on entering a room, either:

* be silent or
* display the contents of 'help' but once.