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

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

Author Topic: Autouseradd - How to disable the auto tell?  (Read 9711 times)

0 Members and 1 Guest are viewing this topic.

Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Autouseradd - How to disable the auto tell?
« 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

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: Autouseradd - How to disable the auto tell?
« Reply #1 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. 
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: Autouseradd - How to disable the auto tell?
« Reply #2 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

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: Autouseradd - How to disable the auto tell?
« Reply #3 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
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline grasfer

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Autouseradd - How to disable the auto tell?
« Reply #4 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.


Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: Autouseradd - How to disable the auto tell?
« Reply #5 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);
}
}

}
?>


Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: Autouseradd - How to disable the auto tell?
« Reply #6 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.

Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: Autouseradd - How to disable the auto tell?
« Reply #7 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  :)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Autouseradd - How to disable the auto tell?
« Reply #8 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);

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Autouseradd - How to disable the auto tell?
« Reply #9 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

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 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: 180
  • 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