L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 11:19:58 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: ignore
Pages: [1]   Go Down
« previous next »
Print
Author Topic: ignore  (Read 225 times)
0 Members and 1 Guest are viewing this topic.
Metaphblade
Rookie
**
Offline Offline

Posts: 49


ignore
« on: February 16, 2008, 07:09:13 PM »

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
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: ignore
« Reply #1 on: February 16, 2008, 10:51:09 PM »

you could add this code and will comletely block it

in bot.php

Code:
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
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: ignore
« Reply #2 on: February 17, 2008, 03:37:59 AM »

Quote from: Metaphblade on February 16, 2008, 07:09:13 PM
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. Smiley

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. Smiley
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: ignore
« Reply #3 on: February 17, 2008, 04:04:37 AM »

Quote from: Metaphblade on February 16, 2008, 07:09:13 PM
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.
Logged
Metaphblade
Rookie
**
Offline Offline

Posts: 49


Re: ignore
« Reply #4 on: February 17, 2008, 03:29:32 PM »

Thanks much.  looks like that code worked.


Quote from: Temar on February 16, 2008, 10:51:09 PM
you could add this code and will comletely block it

in bot.php

Code:
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

Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: ignore
« previous next »
 
Jump to:  

Recent
!items database
by Zeephonz
[Today at 08:05:21 PM]

Log playtime from buddys ...
by IKShadow
[Today at 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]
Stats
Members
Total Members: 1244
Latest: Armonkens
Stats
Total Posts: 11146
Total Topics: 1505
Online Today: 25
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 15
Total: 17
Elesar1
Vain

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.575 seconds with 28 queries. (Pretty URLs adds 0.026s, 4q)
Loading...