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: shutting off login notifiction  (Read 2945 times)

0 Members and 1 Guest are viewing this topic.

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
shutting off login notifiction
« on: April 10, 2006, 01:45:38 pm »
I have Bebot set up as a guild bot atm,
But we do not need it announcing who is logging in or out.
Is there a way to shut this off?
Also I am having problem with !countdown command.
Gives me an error on line 555.

I know this is 2 problems, but help on either one or both would be appreciated

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: shutting off login notifiction
« Reply #1 on: April 11, 2006, 10:11:13 am »
About removing info about who's logging on and off - move Logon_guild.php from modules directory and restart bot.
Dunno what do you want this switched off.
About countdown - can you be more specific with error message - my countdown module have 74 strings, so no line 555 there :)
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

MatHack

  • Guest
Re: shutting off login notifiction
« Reply #2 on: April 11, 2006, 11:39:32 am »
Renaming Logon_GUILD.php to _Logon_GUILD.php is even better, in case you ever might wanna switch it on again.

Offline Jarras

  • BeBot Rookie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: shutting off login notifiction
« Reply #3 on: April 11, 2006, 01:39:59 pm »
Is there a way to shut notification off for just one person(s). Much like in IGN where you could tell the bot !notify off <member>.

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: shutting off login notifiction
« Reply #4 on: April 11, 2006, 04:21:17 pm »
Fatal error: Call to undefined method Countdown::gc() in C:\BeBot\Bot.php on lin
e 555

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: shutting off login notifiction
« Reply #5 on: April 11, 2006, 07:54:33 pm »
Countdown doesn't have a gc() function, it's not even defined for guild chat.
If you added the $commands lines for that, you need to add a gc() function.
Just copy the lines in the pgmsg() function, and replace pgroup/pgmsg with gc.

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: shutting off login notifiction
« Reply #6 on: April 12, 2006, 05:27:05 pm »
Countdown doesn't have a gc() function, it's not even defined for guild chat.
If you added the $commands lines for that, you need to add a gc() function.
Just copy the lines in the pgmsg() function, and replace pgroup/pgmsg with gc.

yes after I did that is when it started giving fatal errors..

$commands["gc"]["cd"] = &$countdown;
$commands["gc"]["countdown"] = &$countdown;

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: shutting off login notifiction
« Reply #7 on: April 16, 2006, 10:48:03 am »
I have changed a few the same way and it is always giving me a fault on line 555.

MatHack

  • Guest
Re: shutting off login notifiction
« Reply #8 on: April 16, 2006, 01:34:44 pm »
If you added the following to your countdown-module, you also have to add the function below.
Quote from: If you added this to your countdown-module
$commands["gc"]["cd"] = &$countdown;
$commands["gc"]["countdown"] = &$countdown;

Code: [Select]
    function gc($name, $msg)
    {
      if ($this -> bot -> is_member($name))
      {
        if ($this -> last >= (time() - 20))
          $this -> bot -> send_tell($name, "You can only initiate a countdown every 20 seconds");
        else
        {
          $this -> last = time();
          for ($i = 5; $i > 3; $i--)
          {
            $this -> bot -> send_gc("[<font color=#ee1115>--------&gt; $i &lt;-------</font>]");
            sleep(1);
          }
          for ($i = 3; $i > 0; $i--)
          {
            $this -> bot -> send_gc("[<font color=#ff7711>--------&gt; $i &lt;-------</font>]");
            sleep(1);
          }
          $this -> bot -> send_gc("[<font color=#11cc11>--&gt; GO GO GO &lt;--</font>]");
        }
      }
    }
PS. This is all from my head, so don't pin any typos in the function on me :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: 196
  • 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