collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: ignore  (Read 2068 times)

0 Members and 1 Guest are viewing this topic.

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
ignore
« 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

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: ignore
« Reply #1 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

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: ignore
« Reply #2 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. :)

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: ignore
« Reply #3 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.

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: ignore
« Reply #4 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


 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 725
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal