BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: jjones666 on October 15, 2006, 12:02:23 am
-
Is there any way to see if a person is currently online in privategroup, kinda like:
if ($this -> bot -> aoc -> buddy_online($name)) for buddy list
Was hoping to add some form of additional output and error checking to the guest chat in our org bot.
Any help gratefully received :-)
-jj-
-
Have a look at the pgroup table in the database :)
-
Omgz, i mean for Bebot 0.2 :-p
Didn't realise all online functions will be stored in DB with 0.3, thats a great change :-)
-jj-
-
No, there's no command currently with 0.2.
Open the Bot.php or PrivGroup.php and under the pgjoin/pgleave, place a sql query to insert 1 for "joined" or 0 for if they leave.
Best place to put the new field is under the members table I think. Field name: "in_group".
Then make a command to get that list, and display the exact people in the group since the bot's last restart.
( Remember to add a line in the bot.php under function connect() to make everyone's "in_group" == 0 )
-
No command in 0.2 no, however i belive the pgroup table is still part of 0.2 since it was written by Blondengy, however it might be tied in with the Wishlist module, not sure.