BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Olismohn on April 16, 2007, 07:30:44 pm
-
When I use the !online command, in the window that appears, no Guild members are present.
Is there something I have to setup before this shows up??
Theres also one more thing, the bot doesn't recognize commands from any other guild members but me, since i am admin.
Oli
-
Did the roster update work? Maybe you entered the wrong org ID into the config file?
-
Ya, i thought it might be that, so I double checked, the ID is correct.
I'll check it once more though.
Oli
-
Yup, the ID matches.
Oli
-
Is bot member of org?
-jj-
-
Yes it is, it responds to messages from org chat.
Is there a special way to add members to the bot? Or should it do that automatically?
Oli
-
- check console for errors when bot logs on
- check Members table in database and make sure it is populated (http://www.webyog.com/downloads/SQLyog529.exe for useful Mysql frontend)
-jj-
-
Most likely scenario as far as I can tell is that the member list hasn't been updated. I had some trouble with this myself when I set up the bot as it was a big guild and the bot timed out before FC servers managed to produce the XML.
That should post an error in your console.
I "solved" this by visiting the page in question. This would be something like http://community.anarchy-online.com/org/stats/d/$dim/name/$id/basicstats.xml but remember to replace $dim with the dimention and $id with the guild ID.
It should take you to the page where the XML is. Then as soon as this page has finished loading restart the bot.
The rationale behind this is that the server and/or proxies cache output from the site and that way the bot won't time out when requesting the page. It worked for me on the 2nd attempt.
Hope that helps.
-
Hmm, the members table is definately not populated, and it doesn't seem to want to be.
I tried going to the site, but that didn't work.
Whats the script that updates the members table called??
Oli
-
I found something weird.
In the help folder there is a help file for a script called members and one for a script called member.
These scripts are however nowhere to be found.
Oli
-
OK, after going through most of the scripts, I have found the problem, or problems.
The script I altered was Roster_GUILD.
1. This command: get_site("http://communities.anarchy-online.com/org/stats/d/" . $this -> bot -> dimension . "/name/" . $this -> bot -> guildid . "/basicstats.xml")
should actually be: get_site("http://www.anarchy-online.com/org/stats/d/" . $this -> bot -> dimension . "/name/" . $this -> bot -> guildid . "/basicstats.xml")
although I don't really know if that matters much.
2. This statement: if (count($members) > 1)
Was not true for me, because I just started the org and only I am on the roster on the website.
So I just changed it to: if (count($members) > 0)
There we go, hopefully this will help someone at some point.
Oli
-
communities CNAME doesn't seem to exist (did it ever?). community CNAME exists but it points to the same server as www.
Where did "communities" come from? If it's from SVN then I guess it needs to be fixed.
-
SVN of 0.2 has it listed as community.anarchy-online.com.
As for #2, if there is only 1 person in the guild, there is no reason for the bot to even update the roster since there essentially is no roster :)
-
In the help folder there is a help file for a script called members and one for a script called member.
These scripts are however nowhere to be found.
Help system is re-vamped as of 0.3.4-dev so help texts for commands no longer (or not yet) present should be less of a problem in the future.
-
It was actually community I thought it was plural so I typed in it improperly.
I thought that community might link to the same place as www, this is why I stated that it may not matter.
I apologize about mistyping it though.
As for the roster, I was testing the bot to make sure it worked before I invited people so knowing that it needed more than one person to update would have been nice. If I hadn't looked at the scripts I would have assumed that it did not work and grabed a different bot.
Oli