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

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

Author Topic: Command to show if individual person online in privategroup?  (Read 2001 times)

0 Members and 1 Guest are viewing this topic.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Command to show if individual person online in privategroup?
« 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-

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Command to show if individual person online in privategroup?
« Reply #1 on: October 15, 2006, 12:10:16 am »
Have a look at the pgroup table in the database :)
BeBot Founder and Fixer Kingpin

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Command to show if individual person online in privategroup?
« Reply #2 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-

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: Command to show if individual person online in privategroup?
« Reply #3 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 )
« Last Edit: October 15, 2006, 01:34:20 am by Naturalistic »
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Command to show if individual person online in privategroup?
« Reply #4 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.
BeBot Founder and Fixer Kingpin

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


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


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

* Who's Online
  • Dot Guests: 95
  • 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