Archive > AO 0.6.x Custom/Unofficial modules

Slaves

(1/12) > >>

Temar:
Slaves Module

This is a Module that will enable Slaves
Basically this is log in more character to handle buddy list

This unique Feature about this is its only a module, making handling of the buddy list much better, it runs with the bot

Currently Only Supports Buddy list handling, stuff like useing slaves for !announce is coming soon

you must Place this module in /main/

to add slave bots add them to your conf file

--- Code: ---$slaves[] = array("username", "password", "botname");

--- End code ---
add that line for each slave

Also you should modify the $cron_delay in your .conf file
i advise 30 seconds per per 1k users on notify

Current MAX supported slaves = 5


ToDo

* Add ability for Slaves to Access commands by simply redirecting them to main functions and main bot takes over
* Add a Setting as to what you want the Slave to do when receiving tell
* Add a Setting for if slaves for help with sending of tells
Download
    http://www.aofiles.com/index.php?action=user_file&owner=temar&file=Slaves


Change Log


* 11/01/09 [1.0] - 1st release
* 13/01/09 [1.1] - classes are not loaded if slaves are not defined
* 13/01/09 [1.1] - Fixed issue with users not being assigned to a Slave
* 13/01/09 [1.1] - Fixed login of Slaves
* 13/01/09 [1.1] - buddies are now added to correct bot is already assigned to 1
* 13/01/09 [1.1] - slaves now send tells that the main cannot due to spam limits
* 22/01/09 [1.2] - now only reasignes buddies when the roster is going to run
* 22/01/09 [1.2] - each bot now has 1 second each for communication instead of 2
* 22/01/09 [1.2] - Fixed issue were messages that were cut only went to main bot
* 22/01/09 [1.2] - send_gc is now available for slaves but not used by this module
* 23/01/09 [1.3] - Now checks users already on buddy list after running reasign
* 23/01/09 [1.3] - Fixed Buddy online and buddy exists functions
* 23/01/09 [1.3] - Fixed Roster update Control Class
* 25/01/09 [1.4] - Fixed split function
* 09/05/09 [1.5] - Fixed some issues in send_tell function
* 04/10/09 [1.7] - Added Reconnect Support for Slaves
When Reporting Bugs about bot even if you think its not this Module you Should Say you are using this module as this module gets involved with alot of core coding and can create unexpected errors

Organizer:
Hey Temar, I'm just trying to understand what exactly this module is and the possible benefits of using it, but I think my brain must be running low on IQ at the moment, would you mind making me a examples or two for dummies in regards to slaves? Thanks m8  ???

Temar:
there is a buddy limit of 1000, not 100% sure this is true for AoC also but probably is
the slave bot ill use extra characters to increase that buddy limit
and soon i plan on useing the slaves to send mass messages also, making them faster
on RK1 i have a raidbot with over 1400 members
im also part of a Big raid bot with over 2500 members, which will be useing this module

Getrix:
Thanks for this module Temar, it was right in time=)

I removed my two "Post before checking it out" post and i will try to give you a buglist.


What i could see before EU server went down for merge was this bug whenever i used a command on Mainbot:


--- Code: ---Warning: Missing argument 4 for Slaves::log(), called in \main\00_BotError.php on line 74 and defined in \main\02_Slaves.php on line 1624
Mainbot [2009-01-13 21:05:38]   [security]      [Undefined function check_access(Getrix, OWNER)!]
Mainbot [2009-01-13 21:05:38]   [TELL]  [OUT]   -> Getrix: The bot is restarting.
--- End code ---
Current error is from using "!restart". But it will give this error if i do a "!whois" also.

Hyde:
Trying to install this on a very new 0.6.1 bot and getting:

Warning: Slaves::require(conf/ServerList.php): failed to open stream: No such file or directory in /home/bots/bebot/bebot-0.6.1/main/02_Slaves.php on line 435

Fatal error: Slaves::require(): Failed opening required 'conf/ServerList.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/bots/bebot/bebot-0.6.1/main/02_Slaves.php on line 435

I looked for a file of that name but I don't see one anywhere.

Navigation

[0] Message Index

[#] Next page

Go to full version