Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Document

jdkcn edited this page Apr 21, 2013 · 1 revision

Installation

  1. Deploy the war into your container.
  2. Copy the WEB-INF/classes/config.json.sample to config.json.
  3. Change the configuration to your robots.

Configuration

{
	"robots":[{
	    "name":"hr-robot",
		"username":"jabberer.bot@gmail.com",
		"password":"yuanyuan",
		"host":"talk.google.com",
		"port": 5222,
		"robot.status.message":"Just a sample java jabber robot.",
		"send.offline.message":true,
		"administrators":["admin@example.com"]
	},{
	    "name":"staff-robot",
		"username":"staff@example.com",
		"password":"xxxxx",
		"host":"example.com",
                "port": 5222,
		"robot.status.message":"Just a another sample java jabber robot.",
		"send.offline.message":true,
		"administrators":["admin@example.com"]
	}],
	"administrators":[{
        "username":"tester",
        "password":"tester",
        "manage.robots":["hr-robot","staff-robot"]
	},{
        "username":"staff",
        "password":"staff",
        "manage.robots":["staff-robot"]
    }],
	"version":"0.9.0"
}

Clone this wiki locally