Booya
collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Search


* Board Stats

  • stats Total Members: 1074
  • stats Total Posts: 18300
  • stats Total Topics: 2487
  • stats Total Categories: 7
  • stats Total Boards: 31
  • stats Most Online: 500

Author Topic: My bot is not registering guild members  (Read 5181 times)

0 Members and 1 Guest are viewing this topic.

Offline Olismohn

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
My bot is not registering guild members
« 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
« Last Edit: April 16, 2007, 08:34:16 pm by Olismohn »

Offline pusikas

  • Posts: 161
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #1 on: April 16, 2007, 09:09:50 pm »
Did the roster update work? Maybe you entered the wrong org ID into the config file?
Luuv  Bot-Keeper of Vengeance ^^*

Offline Olismohn

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #2 on: April 16, 2007, 09:53:19 pm »
Ya, i thought it might be that, so I double checked, the ID is correct.

I'll check it once more though.

Oli

Offline Olismohn

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #3 on: April 16, 2007, 10:03:09 pm »
Yup, the ID matches.

Oli

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #4 on: April 16, 2007, 10:47:33 pm »
Is bot member of org?

-jj-

Offline Olismohn

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #5 on: April 16, 2007, 10:50:27 pm »
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
« Last Edit: April 16, 2007, 11:12:14 pm by Olismohn »

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #6 on: April 17, 2007, 12:15:49 am »
- 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-

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #7 on: April 17, 2007, 12:22:38 am »
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.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Olismohn

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #8 on: April 17, 2007, 02:30:32 am »
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

Offline Olismohn

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #9 on: April 17, 2007, 03:18:07 am »
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

Offline Olismohn

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #10 on: April 17, 2007, 04:00:31 am »
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

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: My bot is not registering guild members
« Reply #11 on: April 17, 2007, 02:12:50 pm »
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.
« Last Edit: April 17, 2007, 02:17:08 pm by Malosar »
Eternalist
General of The Syndicate

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: My bot is not registering guild members
« Reply #12 on: April 17, 2007, 03:19:19 pm »
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 :)
BeBot Founder and Fixer Kingpin

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #13 on: April 17, 2007, 03:37:35 pm »
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.

The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Olismohn

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: My bot is not registering guild members
« Reply #14 on: April 18, 2007, 04:00:19 am »
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

 

* Recent Posts

0.7.0 updates by bitnykk
[May 17, 2020, 04:22:04 pm]


Stats module by bitnykk
[April 16, 2020, 04:45:43 pm]


OnlineOrg by Hell
[February 28, 2020, 11:21:55 pm]


AO Bots - discord server by Kjellis1234
[January 23, 2020, 04:17:04 pm]


Offline AA training timer module by Kjellis1234
[August 29, 2019, 11:12:14 pm]

* Who's Online

  • Dot Guests: 142
  • 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-2020, SimplePortal