BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: eracet1 on April 10, 2006, 01:45:38 pm

Title: shutting off login notifiction
Post by: eracet1 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
Title: Re: shutting off login notifiction
Post by: kuznechik 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 :)
Title: Re: shutting off login notifiction
Post by: MatHack 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.
Title: Re: shutting off login notifiction
Post by: Jarras 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>.
Title: Re: shutting off login notifiction
Post by: eracet1 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
Title: Re: shutting off login notifiction
Post by: Alreadythere 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.
Title: Re: shutting off login notifiction
Post by: eracet1 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;
Title: Re: shutting off login notifiction
Post by: eracet1 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.
Title: Re: shutting off login notifiction
Post by: MatHack 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
SimplePortal 2.3.7 © 2008-2025, SimplePortal