Virtual Reality bot with scripting.
You will need openssl, lua5.1, and json-c development libraries installed.
autoreconf -i
./configure
make
Will produce the binary src/metabot
open('/home/user/MyBot.bot')
Loads bot configuration file, connects to specified server, joins specified room.
list()
Lists currently running bots.
select("MyBot2")
Selects the bot you want to interact with for other commands (say, kill, etc.)
say("Hello")
Sends a chat message through the currently selected bot.
kill()
Shuts down and unloads currently seleted bot
{
"server": "beta.vrsites.com",
"port": 5567,
"name": "MyBot",
"owner": "Me",
"avatar_file": "/full/path/to/avatars/bot.avatar",
"room": "http://www.janusvr.com/index.html",
"position": {
"pos":"1.5 0 -5.0",
"dir":"0 0 0",
"view_dir":"0 0 0",
"up_dir":"0 0 0",
"head_pos":"0 0 0"
}
}
<FireBoxRoom>
<Assets>
<AssetObject id=^body^ src=^http://avatars.vrsites.com/chibii/body_male.obj^ mtl=^http://avatars.vrsites.com/chibii/mtls3/body_male13.mtl^ />
<AssetObject id=^head^ src=^http://avatars.vrsites.com/chibii/head_male.obj^ mtl=^http://avatars.vrsites.com/chibii/mtls3/head_male13.mtl^ />
</Assets>
<Room>
<Ghost id=^BOTNAME^ js_id=^2^ scale=^1.00000 1.00000 1.00000^ head_id=^head^ head_pos=^0.000000 0.750000 0.000000^ body_id=^body^ />
</Room>
</FireBoxRoom>
Note that Ghost id
is set to BOTNAME
. This will be replaced with whatever name is defined in the .bot file.