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

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

Author Topic: Slaves  (Read 97397 times)

0 Members and 6 Guests are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #15 on: January 24, 2009, 08:09:05 am »
1.3 released

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: Slaves
« Reply #16 on: January 24, 2009, 05:42:00 pm »
I'm still on 1.1, I'll update to 1.3 this weekend, but I'm wondering if this was a known bug on 1.1 (therefore fixed) or not? Hopefully its part of the 1.3 "fixed buddy online" note.

I've got "ghosts" in !online. These are people who were on !notify when they logged on but then turned !notify off and logged shortly thereafter (not sure if logging makes a difference). I'm sure that's the case since 3 of the 5 people on !online today who weren't really online were my mules that I had logged on yesterday, immediately turned off !notify when I saw them announced, and then logged off within a minute or two.

I don't -remember- these happening in 0.6.1 before but I was only running it for a couple of days on the big orgbot before installing slaves.

To get the ghosts off !online I have to turn them back on notify while they are offline, then turn their notify back off.
« Last Edit: January 24, 2009, 05:44:43 pm by Hyde »
Doctorhyde/Jexyll/Goraud@RK2

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Slaves
« Reply #17 on: January 24, 2009, 10:22:08 pm »
There was a bug in notify creating online ghosts. The fix coming with 0.6.2 might help you in this case too.

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: Slaves
« Reply #18 on: January 25, 2009, 08:11:55 am »
Upgraded to 1.3 today. Will yell if I see more problems but seems to have fixed my ghost issues (or 0.6.2 did, not sure). Will be easier to be sure in a day or so.

I am still seeing alot of "Total" / "Count" spam when starting the bot. I can live with it, just making sure it is an expected behavior.
Doctorhyde/Jexyll/Goraud@RK2

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #19 on: January 25, 2009, 08:22:26 am »
wat do u mean by alot?
as far as i know you should see a count(1 per bot) and a total, 2 maybe 3 times when bot runs 1st cron and then once every hour, unless triggered by user action
i dont plan on removing it yet as its very help bull with seeing how many on each bot, howeva i will compact it for 1.4

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: Slaves
« Reply #20 on: January 25, 2009, 08:43:25 am »
Between the time where I see:
Botname [2009-01-25 07:37:20]    [CORE]  [INC_GANNOUNCE] Detected org name as: Athen Paladins

and the bot announces itself on orgchat I did a grep/wc and found 71 times where it did a "Total Count:" + "Count:" pair of lines.

Example (these are the first 3 entries from starting the bot up):
Total Count: 44763
Count: 1
Total Count: 44764
Count: 1
Total Count: 44765
Count: 1
Doctorhyde/Jexyll/Goraud@RK2

Offline Serbaa

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Slaves
« Reply #21 on: January 25, 2009, 09:22:58 am »
yep i see this at a high volume also just as a point i actually see it all the time, its just counting up constantly even after the bot start.


Mybot [BUDDY]  [LOG]
Total Count: 58105
Count: 1
Total Count: 58106
Count: 1
Mybot [BUDDY]  [LOG]
Total Count: 58107
Count: 1
Total Count: 58108
Count: 1
Mybot [BUDDY]  [LOG]
Total Count: 58109
Count: 1
Total Count: 58110
Count: 1
Mybot [BUDDY]  [LOG]
Total Count: 58111
Count: 1
Total Count: 58112
Count: 1
Mybot [BUDDY]  [LOG]


Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #22 on: January 25, 2009, 04:25:37 pm »
thats not the slave module, thats a stats module
its counting number of times it reads a site page
howeva im unsure as to what is getting for when some 1 logs on for AoC
there is a setting to turn off, !set Statistics

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #23 on: January 25, 2009, 07:09:18 pm »
1.4 released with Fix for issue with split messages

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Slaves
« Reply #24 on: April 06, 2009, 07:05:51 pm »
do we have a new link for this?

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Slaves
« Reply #25 on: April 07, 2009, 05:08:30 pm »
also does the slave have to be an org member as well? Same side? As all the security and settings are controlled by the master bot, am curious if org and faction are a factor.

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Re: Slaves
« Reply #26 on: May 04, 2009, 12:24:15 pm »
It's something Bebot surely needs, buddylist sharing among slaves.. but i don't agree this is the way to do it.

This module contains all the code to start up a bot, instead of using the available code (in core/ and modules/ etc) we have. What a module like this _should_ do, is extend the current roster/buddylist stuff.

The fact that you're creating a complete bot in 1 module limits it too. Like you said, you want to add !announce and stuff like that.. if it was a normal bot, offering it's buddylist to a main bot, that other bot could help out way more easily.

I hope i get some time soon to start coding again, your module has some interesting stuff in it. I'm curious to see how tiny i can make a module like this.

What i still gotta look into, is how you work around a bot which allready has around 999 buddy's on it's buddylist, and you then add slaves..

core/User.php has:
Code: [Select]
$this -> bot -> core("chat") -> buddy_add($members["id"]..
..without checking if it hit it's limit, and where it needs to go to. So how can the master bot know which bot hit the limit.. all a bit vague now.

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: Slaves
« Reply #27 on: May 04, 2009, 04:02:12 pm »
laen: While you make a good argument it's alot easier said than done.
Infact, that exact question lead me to create VhaBot which is build around the concept of having slave bots directly in the core, allowing plugins to use them without being aware of slaves being present.
(Though, this is disabled in the binary releases to prevent large scale usage of slave bots)

To implement something like this into BeBot it'll probably take a good look at the core and redesign that to make it use slaves internally.
I do believe it's doable while keeping the same outer API, though it probably needs to be extended for plugins that do wish to be aware of the different cores.

2 things are quite reasonable to implement into the core of the bot: extended friendlists and automated load balancing on slaves.
The rest would require a partial redesign of the API probably.

Untill such thing is made into the core of BeBot, this plugin is probably as close as it gets to having slaves for BeBot.
Then again, I don't fully know how this plugin works and how close to the ideal situation it is.

« Last Edit: May 04, 2009, 04:04:23 pm by Vhab »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Slaves
« Reply #28 on: May 04, 2009, 11:40:52 pm »
the main reason there is alot of code that could be else were in this module is simply because i wanted this it be a simply plug and play module, no modification to existing modules required

and to answer clashbot question, generally no as the slaves are only used for buddy list and tells, which doesnt matter wat faction/org you are

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Slaves
« Reply #29 on: May 04, 2009, 11:41:42 pm »
thanks, that will make it easier to implement.

 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 301
  • 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