BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: Pinkishpunk 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.
-
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.
-
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 :)