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
-
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
-
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.
-
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
-
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
$this -> register_event("logon_notify");
but I would really put something like
$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
-
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
$this -> register_event("logon_notify");
but I would really put something like
$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.
-
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
'<?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(&$bot, get_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, $name, 0, MEMBER, 0, 0);
}
}
}
?>
-
ahhh I think I found it.
Looks like it is located in the
\core\user.php file
// 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.
-
yes commenting those lines out and restarting the bot works, in case anyone else wanted to know how to do that :)
-
change the line that adds to this
$this -> bot -> core("user") -> add ($this -> bot -> botname, $name, 0, MEMBER, 0, 1);
-
Here i have improved the Module
Just Replace Old 1 with this
then go on !set autouseradd
and turn notify off :D