BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: Organizer 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
-
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 :)
-
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.
-
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 :)
-
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.
-
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.
-
We'll remove it in the code then, doesn't make much sense to me.
-
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 :)
-
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.