BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.5 support => Topic started by: Metaphblade on February 17, 2008, 01:09:13 am

Title: ignore
Post by: Metaphblade on February 17, 2008, 01:09:13 am
is there a way to get the bot to ignore a certain player?  i have already added to blacklist.  someone misconfigured their budabot somehow, and i guess tried to link to my orgs bot (which i run), so now, every time they say something in their bot, i get a tell, with what they said to my orgs bot.  this doesnt come across in org chat, but i see it in the console (dos prompt).  I have sent them tells, and e-mails, all to no avail.  anything i can do?

Blade
Title: Re: ignore
Post by: Temar on February 17, 2008, 04:51:09 am
you could add this code and will comletely block it

in bot.php

Code: [Select]
function inc_tell($args)
{
if (!preg_match("/is AFK .Away from keyboard./i", $args[1]) && !preg_match("/.tell (.+)help/i",$args[1]) && !preg_match("/I only listen to members of this bot/i",$args[1] ))
{
$user = $this -> chat -> get_uname($args[0]);
$found = false;

$args[1] = utf8_decode($args[1]);

// ignore Code replace name with who u want complete ignore, altho copy next line if u want more than 1, make sure u Format name Correctly Name (uppercase first, lowercase rest)
$ignore["Name"] = TRUE;

if(isset($ignore[$user]))
Return;
// end of ignore Code

Insert the code market ignore Code into function inc_tell
Title: Re: ignore
Post by: Glarawyn on February 17, 2008, 09:37:59 am
anything i can do?

Set them as a banned user. The bot will reply once informing the user they are banned, then do nothing else. It will log that the banned user is sending tells though, so you'll still get the messages on your console.

There is really no way to ignore the character, AO's chat servers don't support it. When you ignore a user in AO, the AO client simply doesn't show anything said by that character. Your client still receives the tell, but you never see it.

Same with bots. I may have make the logging of banned users optional when I added that, but I don't remember. Check settings. :)

I do remember that I added ban checking before commands are even delt with, so there is pretty much no way a banned user can do anything to your bot. :)
Title: Re: ignore
Post by: Alreadythere on February 17, 2008, 10:04:37 am
I have sent them tells, and e-mails, all to no avail.  anything i can do?
Try petitioning in worst case, spamming with a bot usually leads to bans pretty fast.
Title: Re: ignore
Post by: Metaphblade on February 17, 2008, 09:29:32 pm
Thanks much.  looks like that code worked.


you could add this code and will comletely block it

in bot.php

Code: [Select]
function inc_tell($args)
{
if (!preg_match("/is AFK .Away from keyboard./i", $args[1]) && !preg_match("/.tell (.+)help/i",$args[1]) && !preg_match("/I only listen to members of this bot/i",$args[1] ))
{
$user = $this -> chat -> get_uname($args[0]);
$found = false;

$args[1] = utf8_decode($args[1]);

// ignore Code replace name with who u want complete ignore, altho copy next line if u want more than 1, make sure u Format name Correctly Name (uppercase first, lowercase rest)
$ignore["Name"] = TRUE;

if(isset($ignore[$user]))
Return;
// end of ignore Code

Insert the code market ignore Code into function inc_tell

SimplePortal 2.3.7 © 2008-2024, SimplePortal