Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 32 lines (25 sloc) 1.037 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# Require your plugins here
require 'robut/plugin/twss'
require 'robut/storage/yaml_store'

# Add the plugin classes to the Robut plugin list.
# 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 = 'Bot Nick'
  config.room = '...@conf.hipchat.com'

  # Custom @mention name
  # config.mention_name = 'Bot'

  # Ignore personal messages
  # config.enable_private_messaging = false

  # 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
Something went wrong with that request. Please try again.