BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: laen on September 08, 2007, 07:17:18 pm

Title: Wish.php & Autoinvite.
Post by: laen on September 08, 2007, 07:17:18 pm
Code: [Select]
MySQL error (# 0) on query: INSERT INTO bot_pgroup (id) VALUES (-204534226)
Table 'database.bot_pgroup' doesn't exist

Searching around, it is the Wish.php that wants to insert and update it, but never creates it. So change the Wish.php to make use of an existing table or create a new one i guess.


Besides that, whatever i try, autoinvite is turned on in the settings, even modified all user rows to have recieve_invite to 1, notify on all users was allready on one.. but it simply doesn't wanna work.

Besides that, it's spelled wrong. It's receive not recieve. So in addition to my request for help, how about a tablename rewrite?

Update:

The Autoinvite module (AutoInv.php) Doesn't seem to work without the Logon_Notify setting enabled. Make sure people know that!
Title: Re: Wish.php & Autoinvite.
Post by: Ebag333 on September 08, 2007, 08:59:59 pm
If notify isn't on, the person isn't a buddy of the bot.  If they're not a buddy of the bot, then the bot never notices that they come online.  If the bot never notices that they come on line, the bot can't send out an autoinvite.

As for wish.php, that's quite an old module and would require a rewrite to bring it up to 4.x or 5.x standards.
Title: Re: Wish.php & Autoinvite.
Post by: laen on September 08, 2007, 09:09:56 pm
Not quite right. The bot adds a person as a buddy once you !member add it. It sees em come online and go offline. The table row for a user even sets the notify value to 1 or 0, depending on the setting you did.

But, the user isn't invited if the notify module isn't turned on at the bot settings. Which is weird, try and see.
Title: Re: Wish.php & Autoinvite.
Post by: Ebag333 on September 08, 2007, 11:18:44 pm
That is true, but this bit of code comes into play.

Code: [Select]
<php

$mem = $this -> notify -> check($user);

<skipping some code>


if (!$mem)
{
$end = " (not on notify)";
$this -> aoc -> buddy_remove($user);
}

?>

Basically when someone logs on that's a buddy, the bot checks if they're on the notify list.  If they aren't it removes them as a buddy.

This bit of code has caused me grief more than once. :)
SimplePortal 2.3.7 © 2008-2024, SimplePortal