BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: kelmino on July 08, 2008, 01:44:55 am

Title: Autouseradd - How to disable the auto tell?
Post by: kelmino on July 08, 2008, 01:44:55 am
Curious if there is a way to turn off the auto tell for the autouseradd plugin.

I'd like to test the mod and get it completely set up before I announce it to the guild.  I looked in the Autouseradd.php file but I did not see a line that I should comment out.

Thanks
Title: Re: Autouseradd - How to disable the auto tell?
Post by: Nytridr on July 08, 2008, 05:17:00 am
What exactly are you trying to do.. if you do not want your org m8s using a module then just set the permissions for that module in commands to where you only have access to it or what ever. 
Title: Re: Autouseradd - How to disable the auto tell?
Post by: kelmino on July 08, 2008, 06:17:32 am
no, I just don't want the bot to send a tell to each user when it auto adds them from talking in guild chat.

I'd rather it not send the tells because they all say oh well what does the bot do, and it's not 100% configured yet, I'd rather them not even really know about the bot until it's ready to be unveiled to the guild
Title: Re: Autouseradd - How to disable the auto tell?
Post by: Nytridr on July 08, 2008, 10:40:11 am
oh then in your settings {command} you should have an option to turn it off..

spam on logon.. if that dont work  you can look for

Code: [Select]
    $this -> register_event("logon_notify");

but I would really put something like
Code: [Select]
$this -> bot -> core("prefs") -> create ("{your command goes here}", "LogonSpam", "Should the links be spammed to all buddies on their logon?", "{your command goes here}", "{your command goes here};Nothing");

for you can turn it on or off in game..

Sorry for any mistakes in the above I am about asleep..

Nyt
Title: Re: Autouseradd - How to disable the auto tell?
Post by: grasfer on July 08, 2008, 03:31:50 pm
oh then in your settings {command} you should have an option to turn it off..

spam on logon.. if that dont work  you can look for

Code: [Select]
    $this -> register_event("logon_notify");

but I would really put something like
Code: [Select]
$this -> bot -> core("prefs") -> create ("{your command goes here}", "LogonSpam", "Should the links be spammed to all buddies on their logon?", "{your command goes here}", "{your command goes here};Nothing");

for you can turn it on or off in game..

Sorry for any mistakes in the above I am about asleep..

Nyt

Wont this just change if the bot should announce if someone logon or not?

The original author wants to turn off the message the bot actually send to the player he auto add. The 'Botname has added you to the bot.' message.

Title: Re: Autouseradd - How to disable the auto tell?
Post by: kelmino on July 08, 2008, 10:27:37 pm

The original author wants to turn off the message the bot actually send to the player he auto add. The 'Botname has added you to the bot.' message.



That's exactly what I would like for it to do, and I just can not figure out how to do it.  Maybe I'm looking in the wrong plugin? here is what the plugin.  Maybe someone else can point me in the correct direction?

Autouseradd.php
Code: [Select]
'<?php
/*
* Autouseradd v1.0, By Noer
* This module automatically adds new users it sees chat on the guildchat to the user database.
*
*
*/
$Autouseradd = new Autouseradd($bot);

class 
Autouseradd extends BaseActiveModule
{
function __construct(&$bot)
{
parent::__construct(&$botget_class($this));

$this -> register_event("gmsg""org");

}

function command_handler($name$msg$origin)
{
}

/*
This gets called on a msg in the group
*/
function gmsg($name$group$msg)
{
$userlevel $this -> bot -> core("security") -> get_access_level($name);
if ($userlevel 2)
{
$this -> bot -> core("user") -> add ($this -> bot -> botname$name0MEMBER00);
}
}

}
?>

Title: Re: Autouseradd - How to disable the auto tell?
Post by: kelmino on July 08, 2008, 11:24:14 pm
ahhh I think I found it.

Looks like it is located in the

\core\user.php file

Code: [Select]
// Tell them they have been added.
if ($silent == 0)
{
$this -> bot -> send_tell($name, "##highlight##" . $source . " ##end##has added you to the bot." . $autoinvitestring);
}

Now just waiting for someone to log on that has not been added yet to see if commenting this out actually works.  I'll post my restults.
Title: Re: Autouseradd - How to disable the auto tell?
Post by: kelmino on July 08, 2008, 11:30:34 pm
yes commenting those lines out and restarting the bot works, in case anyone else wanted to know how to do that  :)
Title: Re: Autouseradd - How to disable the auto tell?
Post by: Temar on July 09, 2008, 12:11:12 am
change the line that adds to this
Code: [Select]
$this -> bot -> core("user") -> add ($this -> bot -> botname, $name, 0, MEMBER, 0, 1);
Title: Re: Autouseradd - How to disable the auto tell?
Post by: Temar on July 09, 2008, 12:18:03 am
Here i have improved the Module
Just Replace Old 1 with this
then go on !set autouseradd
and turn notify off :D
SimplePortal 2.3.7 © 2008-2024, SimplePortal