BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.4.x Custom/Unofficial Modules => Topic started by: Glarawyn on May 08, 2008, 07:01:30 am

Title: Display Online Bot Members on a Web Page
Post by: Glarawyn on May 08, 2008, 07:01:30 am
About the module:
This module will automatically update the a web page with the bot members who are currently online in game. The updates are done with a simple web query. All data sent between the bot and web site is encrypted. Because an authenticated web query is used to update online. your chat bot and web page display can be on different computers. BeBot simply needs to be able to load a web page on your web server.

Commands provided by WebOnline.php:
/tell yourbot !webonline
This forces the bot to update the online display and gives you a debug click window. This command is disabled by default and has to be enabled using /tell yourbot !commands tell.

Installation (BeBot Module):
Extract BeBot_WebOnline_1.0.0.zip. Move BeBot_WebOnline/BeBot/custom/modules/WebOnline.php to your custom/modules directory.

Requirements (BeBot Module):
You will need to have the mcrypt and mhash PHP modules available. Windows users should use the full PHP installation from www.php.net, not the BeBot PHP distribution. *NIX users should consult the PHP documentation for their distribution.

Setup (BeBot Module):
To use the module you have to set the modules settings.

/tell botname !set webonline UpdateURL http://www.somesite.com/AOWebOnline/update_online.php

/tell Guildbot set webonline key SomeEncryptionKey

The encryption key can be anything you want, though I would recommend using something long and random.

Requirements (Web Site):
Webserver with PHP support.
Required PHP modules: mcrypt, mhash, sqlite.

Installation (Web Site):
Extract the zip file. Place the contents of the www directory on your web server. Your webserver needs to have write access to the online.sq2 (SQLite 2 Database) file.

Setup (Web Site):
Edit config.php. The key must be exactly the same as the key set in your BeBot settings (above). dppath should point to the SQLite database file.

Demo:
Sentinels Online Players (http://www.sentinels.us/AOWebOnline/)

Download:
BeBot_WebOnline_1.0.0.zip (http://zibby.isa-geek.net/BeBot_0.4/WebOnline/BeBot_WebOnline_1.0.0.zip)
Title: Re: Display Online Bot Members on a Web Page
Post by: Glarawyn on May 08, 2008, 07:01:58 am
If anyone knows how to integrate something like this with PHPBB3 let me know...  ;D
Title: Re: Display Online Bot Members on a Web Page
Post by: Blueeagle on May 08, 2008, 09:54:01 am
IMPORTANT NOTE

It is NEVER a good idea to run BeBot from within the document root of a webserver as this bot is not intended to, nor secured for such an environment.

If you run BeBot on the same machine as the web server is running on be sure that BeBot is in a directory outside the document root.

I know that this module does not require or encourage it, but it's worth noting anyway.
Title: Re: Display Online Bot Members on a Web Page
Post by: Khalem on May 08, 2008, 12:48:06 pm
Adding common modules like mhash and mcrypt to the BeBot-php package. Will post update later.
Title: Re: Display Online Bot Members on a Web Page
Post by: Nytridr on May 08, 2008, 06:37:34 pm
could you make one up for the latest svn also? 
Title: Re: Display Online Bot Members on a Web Page
Post by: Temar on May 08, 2008, 07:27:51 pm
This should work with this module

http://bebot.link/0-5-x-customunofficial-modules/0-4_support-for-latest-0-5/ (http://bebot.link/0-5-x-customunofficial-modules/0-4_support-for-latest-0-5/)
Title: Re: Display Online Bot Members on a Web Page
Post by: Nytridr on May 08, 2008, 08:06:47 pm
Yea I know it does but on the ones that I run I would rather have the bot the way it is and have modules for the bot itself and not have another mod translate it to work for the bot.  Since things seem to be heading the way they are, I just figure having it already ready to go would be good.
SimplePortal 2.3.7 © 2008-2024, SimplePortal