collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Slaves  (Read 108772 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Slaves
« on: January 11, 2009, 07:51:58 pm »
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: [Select]
$slaves[] = array("username", "password", "botname");
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
« Last Edit: October 05, 2009, 11:40:23 am by Temar »

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: Slaves
« Reply #1 on: January 12, 2009, 02:36:10 pm »
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  ???

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #2 on: January 12, 2009, 06:26:36 pm »
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

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Slaves
« Reply #3 on: January 15, 2009, 07:55:43 pm »
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: [Select]
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.
Current error is from using "!restart". But it will give this error if i do a "!whois" also.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: Slaves
« Reply #4 on: January 21, 2009, 03:40:37 am »
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.
« Last Edit: January 21, 2009, 07:14:41 pm by Hyde »
Doctorhyde/Jexyll/Goraud@RK2

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Slaves
« Reply #5 on: January 21, 2009, 07:04:48 pm »
just verifying temar, this basically allows another bot to act as buddylist overflow, and passes messages to the main bot.
clash has 1400 members
so clashbot has 999 buddies plus the slave "clashbot2"
clashbot2 which is technically invisible, has 401 buddies


clashbot2 just passes the messages back to clashbot.

Now are these messages passed via DB, or through tell or PG?

I'm curious as to what it may do to alliance relays...

also as this is going in the conf file, then clashbot loads clashbot and clashbot2, instead of a separate bot running...

Am I right, or am I missing something?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #6 on: January 21, 2009, 10:26:42 pm »
hyde you need the latest 0.6 files below
/conf/ServerList.php
/Source/Bot.php


clashbot
the buddies are shared even so thats 700 on main and 700 on slave
this is a module that is loaded on main bot, so basicly its internal and will not affect any other stuff like relays
this also uses slaves for sending of tells when main is unable to

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Slaves
« Reply #7 on: January 22, 2009, 12:13:57 am »
k, good that will get rid of the buddy clean mod then...awesome!

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: Slaves
« Reply #8 on: January 22, 2009, 12:46:33 am »
Beautiful. Installed the 3 files from this thread, created 2 slave bots, configured everything and my orgbot automatically distributed the buddies across all 3 bots. I love it ... especially the fact that they're all controlled by the master bot.

My org's buddy capacity just doubled, which fixes so many problems, since we were over the 1600 mark in our main org.

Thank you :)
Doctorhyde/Jexyll/Goraud@RK2

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: Slaves
« Reply #9 on: January 22, 2009, 12:50:17 am »
I am seeing alot of spam in the console, like:

Total Count: 14639
Count: 1

I'm assuming its a debugging thing for now. Just post when there is a new version, I'm subscribed. Going to keep using this one for now :)
Doctorhyde/Jexyll/Goraud@RK2

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #10 on: January 22, 2009, 07:08:26 am »
yer there is alot of debug stuff left in
the thing u are seeing is usually output hourly when another module chec the buddy list
its basicly a count of each buddy list for each char and then a total

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #11 on: January 22, 2009, 08:59:54 pm »
1.2 released
see 1st post

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: Slaves
« Reply #12 on: January 23, 2009, 11:43:55 pm »
We might re-write Elitenet on ur module :D
I didnt tested yet but looks good :D
We had big problems with Buddy's while porting to 0.5, so we give up :D

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: Slaves
« Reply #13 on: January 24, 2009, 01:30:48 am »
We might re-write Elitenet on ur module :D

Off-topic: WTB Elitenet and Neutnet hooking up and having a child, then dying ... we don't really need both, they duplicate each other.
Doctorhyde/Jexyll/Goraud@RK2

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: Slaves
« Reply #14 on: January 24, 2009, 02:12:37 am »
i dunno about that one :D is it up or on-making?
Anyway, bump for Temar :P

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 197
  • 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-2024, SimplePortal