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: Guildbot/Raidbot Message of the Day  (Read 13264 times)

0 Members and 2 Guests are viewing this topic.

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: Guildbot/Raidbot Message of the Day
« Reply #15 on: May 15, 2006, 03:08:32 pm »
Eh, I was just noting that apparently it's not common practice around here, as I've had to correct this several times...

We're (well, bebot) is hobbycoding, thus we take the shortest way from start to finish, checks just take extra time to write ;)
Too many toons.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: Guildbot/Raidbot Message of the Day
« Reply #16 on: May 16, 2006, 06:29:28 am »
i'm new to host bebot. but think it's going oki  ;D

but i get this all the time ???

Warning: Invalid argument supplied for foreach() in C:\BeBot\modules\MOTD.php on line 493

and that line looks like this

foreach ($result as $motd)

what do i do to stop that Warning ???

Another result of an Empty variable not being checked. Replace the function motd_cleanup() with the following:
Code: [Select]
function motd_cleanup()
    {
        $result = $this -> bot -> db -> select("SELECT id,expiretime FROM motd");
        if (!empty($result)) {
        foreach ($result as $motd) {
            if ($motd[1]-time() <= 0)
            {
                $this -> bot -> db -> query("DELETE FROM motd WHERE id = " . $motd[0] );
                $this -> bot -> log("CRON", "MOTD", "MOTD Item " . $motd[0] . "  removed.");
            }
        }
        }
    }
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: Guildbot/Raidbot Message of the Day
« Reply #17 on: May 18, 2006, 04:03:24 pm »
thx that help  :)

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Guildbot/Raidbot Message of the Day
« Reply #18 on: June 11, 2006, 12:54:53 pm »
I may of missed it, not very good at coding .
Is there a way to set frequency of how often MOTD sends out the message, such as every 2 min etc.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Guildbot/Raidbot Message of the Day
« Reply #19 on: June 12, 2006, 05:15:22 pm »
I may of missed it, not very good at coding .
Is there a way to set frequency of how often MOTD sends out the message, such as every 2 min etc.


Nope. The message is sent on logon (in guild mode) or when a user joins the private group (in raid bot mode).

 

* 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: 299
  • 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