BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: Margon on November 17, 2009, 12:34:54 am

Title: whois update in a new modul
Post by: Margon on November 17, 2009, 12:34:54 am
hi, i need a function to update the whois table which can do:

- if the player dont exist in the whois db -> insert him
- online status from a player


i dont want to check every single player with !whois <xyz>

Code: [Select]
$this -> bot -> core("whois") -> lookup($player);
dont work  as i wish :(
Title: Re: whois update in a new modul
Post by: Margon on November 17, 2009, 04:24:41 pm
no ideas?
i need to update the online state of some players for an overview
Title: Re: whois update in a new modul
Post by: Alreadythere on November 17, 2009, 11:03:43 pm
lookup is the only way to force a whois update.

For online stuff check the online core, there you can get the online status of members.

For the online status of random people you'll have to use something like the is module.
Title: Re: whois update in a new modul
Post by: Margon on November 18, 2009, 12:55:18 am
the players i want to check are not members or in a group, i need it for the kos-list

i want to check the online status from the player on the kos list
Title: Re: whois update in a new modul
Post by: Margon on November 19, 2009, 12:24:21 pm
the is function often get a timeput, and its to slow

i need a fast method to ceck the online status without adding the players  to the notify list
Title: Re: whois update in a new modul
Post by: Alreadythere on November 19, 2009, 11:04:56 pm
There is none, only way is to add them as buddies and catch the event - which is basically what !is does (there are a couple of checks for safety there too).
Title: Re: whois update in a new modul
Post by: Margon on November 19, 2009, 11:11:20 pm
how many buddys are possible to add?

are buddys automaticly users with member rights?
Title: Re: whois update in a new modul
Post by: Margon on December 04, 2009, 10:03:42 pm
bump

i need a way to add player on the buddy list but without giving him any rights or sending him tells (xy added you to the memberlist..blabla)
Title: Re: whois update in a new modul
Post by: Kyr on December 05, 2009, 05:08:34 pm
!settings Autouseradd

Code: [Select]
Settings for Autouseradd
Enabled: On
 Description: Should users be added to the Bot?
 Change to: [ On | Off ]
Notify: On
 Description: Should the User be Notified that he was added to the Bot?
 Change to: [ On | Off ]

Use the command above and you can turn off the notification.  Can't find a setting for new users defaulting to guest instead of member, maybe someone else knows if such a setting exitsts.

~Kyr
Title: Re: whois update in a new modul
Post by: Margon on December 15, 2009, 12:29:57 pm
bump

i need a way to add player on the buddy list but without giving him any rights or sending him tells (xy added you to the memberlist..blabla)

i got it! but now a have a new question^^

how can i use a function from an other module?
$this -> bot -> module("modulename") -> function($xxx); ?
SimplePortal 2.3.7 © 2008-2024, SimplePortal