Archive > 0.2.x Custom/Unofficial Modules

Ventrilo Display

(1/7) > >>

Glarawyn:
Here it is, a module to display the status of your Ventrilo server.

Pre-Installation:
This module needs The ventrilo_status program to function. The ventrilo_status program for Windows, Linux i386, Solaris SPARC, Solarias x86, FreeBSD x86, NetBSD x86, and Mac OSX PowerPC can be found in the server version of Ventrilo. Download from Ventrilo.com. This module will obviously only work on the platforms supported by the Ventrilo binaries.

Disclaimer: Ventrilo's license does not allow unauthorized redistribution of their binaries, as such they are not included with this module. Also, I do not want the responsibility of ensuring that a binary executable is free from viruses and other security risks. You should only download ventrilo_status from Ventrilo.com

Pre-Installation (Cont.):
Download the Ventrilo server and locate the ventrilo_status (or ventrilo_status.exe for windows users) and place it somewhere on your harddrive. The default location for this module is in your BeBot's extras directory. 

This module also uses the Module Settings module. Install the Module Settings modules before installing the Ventrilo module.

Required Configuration
Before you can use the Ventrilo module, you must configure it.

/tell yourbot !set Ventrilo server <hostname or ip address> (Required!)
/tell yourbot !set Ventrilo port <port number> (Required!)

Optional Configuration
/tell yourbot !set Ventrilo password <password> (Only required if your Ventrilo server requires a password to obtain status via ventrilo_status. If your server does not require this, don't set it!!!)

/tell yourbot !set Ventrilo prgpath <path to ventrilo_status> (Only required if you put ventrilo_status somewhere besides your BeBot's extras directory. Default: ./extras/. Example: c:\ventrilo\, /usr/local/bin/)

/tell yourbot !set Ventrilo showclient <On|Off> (Enables and disables showing client information such as ping and time connected)
/tell yourbot !set Ventrilo showserver <On|Off> (Enables and disables showing server information)

Usage
Use the !vent command in tell, private group, or guild chat to display the status. Ventrilo admins will be displayed in red. Protected rooms will be highlighted in orange.

Current Version:: 1.0.6 (2007-01-17)

Download: Ventrilo-1.0.6.zip

Enjoy!

Changelog:
1.0.0: Initial Release
1.0.1: SVN and Release were not in sync. Whoops.
1.0.5: Fixed for Windows bot hosts and updated to use v2.0.3 of Module Settings
1.0.6: Fixed error messages displayed on bot console when no clients are connected to the Ventrilo server.

Glarawyn:
One more note. The PHP function shell_exec() requires that PHP's safe mode be disabled. On my Linux box (Ubuntu 6.06.1 LTS (Dapper Drake) the php4-cli packages was configured with safe mode off by default, so I didn't see any problems with using this method.

If your distributor or host has chosen to enable safe mode globally, you should not change the global configuration file. Instead create a php.ini in your bot's directory and run your bot with the command:

php -c . start.php

Dabaron:
Not sure what I'm doing wrong but I get this error after I use the !vent command:

'.' is not recognized as an internal or external command,
operable program or batch file.

Warning: Invalid argument supplied for foreach() in C:\BeBot\Beerraid\modules\Ventrilo.php on line 227

Warning: Invalid argument supplied for foreach() in C:\BeBot\Beerraid\modules\Ventrilo.php on line 172


It lets me set everything and it all shows up in the settings but this is what I get when doing the command to check the status.  Any ideas?

Xenixa:
Well at a cursory glance at the code for showing Vent server stats it appears there is a typo. I don't have a Vent server to test on but try this:
Line 136, remove the Period or Change

--- Code: ---$inside .= $this -> channel_display(
--- End code ---
... etc. etc.
to read like this

--- Code: ---$inside = $this -> channel_display(
--- End code ---
... etc. etc.

Glarawyn:
Xenixa's typo is not a typo. :)

I looked, and what I have released doesn't seem to match up with what I have running on my bot, so I might have exported the wrong revision out of my SVN repository for release.

Updated to v 1.0.1, try downloading the new version.

If you continue having problems, reread the first post again and make sure you've followed all the instructions. Installing this module is not as simple as dumping the php files into you bot and restarting.

If you continue to have problems, please post here. I haven't tested this module on a Windows machine so I don't know if it will work, though I don't see any reason why it shouldn't.

Navigation

[0] Message Index

[#] Next page

Go to full version