BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.5.x Custom/Unofficial Modules => Topic started by: Temar on January 23, 2008, 03:35:47 am

Title: BanManager
Post by: Temar on January 23, 2008, 03:35:47 am
i have Improved Slightly and Added !blacklist as command alias of ban
blacklist module should be removed (buggy and not needed)

Changes
Title: Re: BanManager
Post by: Dracutza on March 10, 2008, 10:46:09 pm
Fatal error: Call to a member function register() on a non-object in P:\pobot3\m
odules\BanManager.php on line 74


Code: [Select]
$this -> bot -> commandalias -> register("ban", "banlist");
Title: Re: BanManager
Post by: Alreadythere on March 10, 2008, 11:00:21 pm
Are you using the trunk version? The command alias requires that core module.

Here (http://bebot.link/0-4-x-customunofficial-modules/command-alias-for-0-4-3/) is a 0.4.3 version of the command alias module.
Title: Re: BanManager
Post by: Threeze on March 11, 2008, 12:24:57 am
Tried doing it myself [no luck], but any chance on a modified whois module that would get the blacklist info and directly dump the reason the person is on the blacklist into the blob showing the character information?

I.e.:
xxxbot: A "Bbbb" C is a level 220 (AT 7 - Common) Female Opifex Agent, Clan, Member of Somecrappyorg:: Blacklisted! Reason: reasongoeshere :: Details

as opposed to:
xxxbot: A "Bbbb" C is a level 220 (AT 7 - Common) Female Opifex Agent, Clan, Member of Somecrappyorg:: Warning: Blacklisted! :: Details


I realize it would lengthen the whois spam, but it would also be more informative... if this isn't desirable, then a link to the reason the person was blacklisted would also be nice.
Title: Re: BanManager
Post by: Temar on March 11, 2008, 12:43:04 am
well on the current SVN playernotes will show up on !whois if any, playnotes will include ban reasons
Title: Re: BanManager
Post by: Dracutza on March 11, 2008, 03:50:05 am
using 4.3, copied proper files in and now

!ban add name reason results in

Fatal error: Call to a member function get_uid() on a non-object in P:\pobot3\mo
dules\BanManager.php on line 175

Code: [Select]
$id = $this -> bot -> chat -> get_uid($user);
Title: Re: BanManager
Post by: Blueeagle on March 11, 2008, 03:52:27 am
Code: [Select]
$id = $this -> bot -> chat -> get_uid($user);
$this->bot->chat->get_uid($user) was called $this->bot->aoc->get_uid($user); prior to trunk iirc.

It's not advised to mix modules between versions but to use back ports where availible.
Title: Re: BanManager
Post by: Dracutza on March 11, 2008, 04:11:51 am
maybe i'll just looking to moving us towards 5 then.
Title: Re: BanManager
Post by: Temar on March 11, 2008, 04:55:33 am
http://bebot.link/0-4-x-customunofficial-modules/0-5-0_support-php-(so-0-5-0-modules-work)/
SimplePortal 2.3.7 © 2008-2024, SimplePortal