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

Title: Command to show if individual person online in privategroup?
Post 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-
Title: Re: Command to show if individual person online in privategroup?
Post by: Khalem on October 15, 2006, 12:10:16 am
Have a look at the pgroup table in the database :)
Title: Re: Command to show if individual person online in privategroup?
Post by: jjones666 on October 15, 2006, 12:13:19 am
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-
Title: Re: Command to show if individual person online in privategroup?
Post by: Naturalistic on October 15, 2006, 01:05:23 am
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 )
Title: Re: Command to show if individual person online in privategroup?
Post by: Khalem on October 16, 2006, 07:45:40 pm
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.
SimplePortal 2.3.7 © 2008-2024, SimplePortal