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
-
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
-
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 :)
-
Renaming Logon_GUILD.php to _Logon_GUILD.php is even better, in case you ever might wanna switch it on again.
-
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>.
-
Fatal error: Call to undefined method Countdown::gc() in C:\BeBot\Bot.php on lin
e 555
-
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.
-
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;
-
I have changed a few the same way and it is always giving me a fault on line 555.
-
If you added the following to your countdown-module, you also have to add the function below.
$commands["gc"]["cd"] = &$countdown;
$commands["gc"]["countdown"] = &$countdown;
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>--------> $i <-------</font>]");
sleep(1);
}
for ($i = 3; $i > 0; $i--)
{
$this -> bot -> send_gc("[<font color=#ff7711>--------> $i <-------</font>]");
sleep(1);
}
$this -> bot -> send_gc("[<font color=#11cc11>--> GO GO GO <--</font>]");
}
}
}
PS. This is all from my head, so don't pin any typos in the function on me :P