BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: mesa on August 31, 2006, 10:38:46 pm

Title: !announce
Post by: mesa on August 31, 2006, 10:38:46 pm
Hey all.


recently moved a raidbot from a server that couldn't host it anymore to a new one and after a lot of blood, sweat, tears, and vasaline got it working agin except for one thing.

it seems the although the database of members is sucessfully intact !announce only works for people who have joined the bot since it's move to the new server.

anyone experience something similar to this or could point me in the right direction about where to start looking at code?  my php is pretty rough but im wondering if this is just something where the bot is looking at it's friends list 1st then checking the memberlist and may not be fixable  :-\

thanksy
-mesa
Title: Re: !announce
Post by: mesa on September 01, 2006, 12:58:24 am
ok i did a little more digging and stopped being lazy ;)

i believe it has to do with this part of MassMsg.php

Code: [Select]
function send_massmsg($from, $msg, $invite)
{
$allonline = array_keys($this -> bot -> commands["tell"]["online"] -> guild);
if (!empty($allonline))
{
foreach ($allonline as $member)
{


it looks to me like it creates and array of online people and puts them into $allonline then loops over that array to see if they are members. 

so I guess what im wondering would be if there was a way to reverse the order and take $members or some such and check if they are online and then send the tell.

anywho gonna keep working on it and try some stuff but would love any advice

thx
SimplePortal 2.3.7 © 2008-2024, SimplePortal