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

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

Author Topic: !announce  (Read 1794 times)

0 Members and 1 Guest are viewing this topic.

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
!announce
« 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

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: !announce
« Reply #1 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

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 452
  • 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