collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Display Online Bot Members on a Web Page  (Read 6555 times)

0 Members and 1 Guest are viewing this topic.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Display Online Bot Members on a Web Page
« 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

Download:
BeBot_WebOnline_1.0.0.zip

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Display Online Bot Members on a Web Page
« Reply #1 on: May 08, 2008, 07:01:58 am »
If anyone knows how to integrate something like this with PHPBB3 let me know...  ;D

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Display Online Bot Members on a Web Page
« Reply #2 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.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Display Online Bot Members on a Web Page
« Reply #3 on: May 08, 2008, 12:48:06 pm »
Adding common modules like mhash and mcrypt to the BeBot-php package. Will post update later.
BeBot Founder and Fixer Kingpin

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: Display Online Bot Members on a Web Page
« Reply #4 on: May 08, 2008, 06:37:34 pm »
could you make one up for the latest svn also? 
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Display Online Bot Members on a Web Page
« Reply #5 on: May 08, 2008, 07:27:51 pm »

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: Display Online Bot Members on a Web Page
« Reply #6 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.
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 506
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal