BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: Heffalomp on August 17, 2009, 01:39:35 am

Title: Checking if a person that logs on is in the bots org.
Post by: Heffalomp on August 17, 2009, 01:39:35 am
Is there any efficient way of checking wether a person that logs on is a member of the bots org when it logs on?
(Not just MEMBER or higher security access, but actualy ORG member).
Title: Re: Checking if a person that logs on is in the bots org.
Post by: Khalem on August 18, 2009, 07:24:52 pm
To the best of my memory i cannot recall there being a function to archieve this, but there really should be.

Could you please submitt a blueprint for a feature request on this?
Title: Re: Checking if a person that logs on is in the bots org.
Post by: Heffalomp on August 19, 2009, 09:41:27 pm
atleast I figured out how to do it in the module I was working on, but I suppose there would be better ways of doing it...
Code: [Select]
    /*
    This gets called if a buddy logs on/off
    */
    function buddy($name, $msg)
    { // Start function buddy()
if ($msg == 1)
{
$this -> checkup = $this -> bot -> core("whois") -> lookup($name);
if ($this -> checkup["org"] == $this -> bot -> guildname)
{
$this -> guild_online[$name] = $this -> bot -> core("whois") -> lookup($name); // Add to the guild_online array.
$this -> cron_update = TRUE; // Update the file on next cron cycle.
$this -> checkup = array();
}
}
else if (isset($this -> guild_online[$name]))
{
unset($this -> guild_online[$name]); // Remove $name from the guild_online array.
$this -> cron_update = TRUE; // Update the file on next cron cycle.
}
} // End function buddy()


Was making a rss feed of online org members (and guests), and the checking of who logging on/of and actualy was org member was giving me gray hairs for sure...
How do I go about submitting a blueprint? =)
Title: Re: Checking if a person that logs on is in the bots org.
Post by: Khalem on August 20, 2009, 06:52:18 am
To submitt a blueprint (feature request) for BeBot, use the Blueprint link located under Launchpad on the left hand side menu or the Board link labeled Feature requests.

Unfortunately you will need to register an account with Launchpad to submitt bug reports and blueprints, but it goes a long way helping us keep track of issues that needs to be done.
Title: Re: Checking if a person that logs on is in the bots org.
Post by: Heffalomp on August 20, 2009, 03:52:05 pm
screw registering! I used my bf's account, it was allready logged on  ::)
https://blueprints.launchpad.net/bebot/+spec/bebot-buddy-orgmember (https://blueprints.launchpad.net/bebot/+spec/bebot-buddy-orgmember)
Title: Re: Checking if a person that logs on is in the bots org.
Post by: Khalem on August 20, 2009, 05:09:53 pm
Hehehe.

That works ;)
SimplePortal 2.3.7 © 2008-2024, SimplePortal