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: Online list inside bot  (Read 1602 times)

0 Members and 1 Guest are viewing this topic.

Offline Pinkishpunk

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Online list inside bot
« on: October 01, 2009, 10:12:07 pm »
Migth be me going blind or the cheap boze, I cant seem to find how one gets a list of online people inside the bot for a module ?

I usual only interacts from outside the bot directly into the sql but I want to plot some data over org activity, and that seems best done through an internal moduled run of the bot cron.


Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Online list inside bot
« Reply #1 on: October 01, 2009, 11:37:56 pm »
The online list is stored on the aptly named table online. There should be a core or main module handing the tracking, you'll just have to plug into the table. For correct access you need the botname too, as the table can be shared among several bots if you are running a multi-host environment.

As it's a simple mysql table you can even run statistic jobs outside the bot if you want, that way you won't interfer with the normal usage.

Offline Pinkishpunk

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Online list inside bot
« Reply #2 on: October 23, 2009, 08:06:41 pm »
yeah cooked up a little bash script than calls a php script that just returns the current numbers of people online, to plot them with rrd, and then another to accumulat gametime for the nickname so I can see who the real addicts are :)

 

* 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: 489
  • 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