examples/Chatfile in robut-0.3.0 vs examples/Chatfile in robut-0.4.0
- old
+ new
@@ -6,17 +6,23 @@
# Plugins are handled in the order that they appear in this array.
Robut::Plugin.plugins << Robut::Plugin::TWSS
# Configure the robut jabber connection and you're good to go!
Robut::Connection.configure do |config|
+ # Note that the jid must end with /bot if you don't want robut to
+ # spam the channel, as described by the last bullet point on this
+ # page: https://www.hipchat.com/help/category/xmpp
config.jid = '...@chat.hipchat.com/bot'
config.password = 'password'
- config.nick = 'My Nick'
+ config.nick = 'Bot Nick'
config.room = '...@conf.hipchat.com'
-
+
+ # Custom @mention name
+ # config.mention_name = 'Bot'
+
# 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
\ No newline at end of file
+end