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: Whois table and Guests of bot  (Read 5355 times)

0 Members and 2 Guests are viewing this topic.

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Whois table and Guests of bot
« on: March 16, 2009, 11:55:41 am »
Hi guys,

Maybe someone can enlighten me on this issue...

Members typically stay in the Whois table so that I can use the data there to find class and level etc. in my custom modules. However lately I also have added many people with Guests access to the bot.... while they are listed in the Users table as all normal members, they just sometimes have entries in the Whois table for some reason.

Is this normal, and is there a way to make all guests access people also be updated in Whois table for me to use the data there?

Thanks in advance!

Organizer

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: Whois table and Guests of bot
« Reply #1 on: March 21, 2009, 06:02:35 pm »
Nobody knows how this is working? I still have the same problem, WHOIS table does not contain Guests of the bot, all Members are there of course. Is there any way I can force it to also update and keep Guests in WHOIS or is it supposed to do that already so that this would be an error?

Thanks in advance :)

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Whois table and Guests of bot
« Reply #2 on: March 21, 2009, 07:05:00 pm »
The bot should store the infos for all characters queried.

One thing I noticed in the code though is that the whois table is emptied every time your bots restarts. Not sure why that is done, try commenting out the TRUNCATE TABLE call in core/aoc/Whois.php.

Stored information will stay inside the table forever then, but should still be updated on a query if it's outdated.

And please give some feedback if your bot still works correctly, then I'll remove the TRUNCATE call for the next version.

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: Whois table and Guests of bot
« Reply #3 on: March 22, 2009, 09:49:39 am »
Okay I'll give that a shot, and yes I know as well that it has always been emptied, god knows why. But if new are added, existing changed and/or deleted based on changes, then there might not be a need for it :)

This might solve my issue with guests as well even if of course there has to be another reason for guest not being populated in Whois in general, compared to members... I frequently restart the bot, way to often sometimes :)
« Last Edit: March 22, 2009, 09:51:15 am by Organizer »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Whois table and Guests of bot
« Reply #4 on: March 22, 2009, 12:34:47 pm »
This might solve my issue with guests as well even if of course there has to be another reason for guest not being populated in Whois in general, compared to members... I frequently restart the bot, way to often sometimes :)
Members should be on notify that means they are on the buddy list of the bot. So every time the bot starts up all their infos get read and added.

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: Whois table and Guests of bot
« Reply #5 on: April 13, 2009, 01:21:09 pm »
I removed the code and had the bot running ever since, and unless you devs know why that table should be flushed I dont know either, everything looks to be working perfect here, not noticed any bugs.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Whois table and Guests of bot
« Reply #6 on: April 13, 2009, 03:27:32 pm »
We'll remove it in the code then, doesn't make much sense to me.

Offline Justine

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Whois table and Guests of bot
« Reply #7 on: May 10, 2009, 07:27:35 pm »
Ok, for a very non bot minded person, this sounds like the issue we are having with our bot. The server we have it running on, tends to shut down every so often and after we do a restart any member who has not logged in since it will not show up in a !whois request. I notice that Alreadythere comments that code will be removed, has this been done? or is this an upcoming change?

Thanks in advance :)

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Whois table and Guests of bot
« Reply #8 on: May 10, 2009, 11:13:26 pm »
This will be fixed in the upcoming 0.6.3 release.

I just commited the code to the repository. See http://bazaar.launchpad.net/~bebot-devel/bebot/stable-0.6/revision/24/core/aoc/Whois.php for details.

BeBot Founder and Fixer Kingpin

 

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