List Info

Thread: Auto-respons on pm




Auto-respons on pm
country flaguser name
Sweden
2007-08-18 16:21:13
Hi there
I am looking for a feature that many BNC's provide.
As soon as someone PM's me I want to start the conversation
with a 
certain string.

Let's say I want everyone that PM's me to see the text:
"Hi there! I will get to you as soon as I can, please
type your full 
question here so that I may help you faster"

Not just when I am away but all the time, so people know
this.
Is there a addon or maybe just a function that does this?

Best regards
XeroXer


Re: Auto-respons on pm
country flaguser name
Netherlands
2007-08-20 02:03:53
Quoting XeroXer  XeroXer (xeroxerxeroxer.com):

> Not just when I am away but all the time, so people
know this.
> Is there a addon or maybe just a function that does
this?

There is autowhois.pl on the scripts pages. It can be very
easily
adapted to do what you want, just change the line 

  $server->command("whois $nick");

to something like

  $server->say("msg $nick Yadayada foo");

HTH,
Sander.
-- 
| Women like silent men, they think they're listening.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41
08CE C94D


Re: Re: Auto-respons on pm
country flaguser name
Sweden
2007-08-20 07:42:17
Hi!

I am actually using that autowhois.pl script.
But inbedding a autoresponse in that would add some bugs.
First of all if I pm someone and they respond, it will type
the 
autoresponse.
If someone pm's me and then waits a while and types
something again, 
they will get the message both times.

So it would work but I would add other stuff that would be
weird and 
irritating.

Best regards
XeroXer


Sander Smeenk wrote:
> Quoting XeroXer  XeroXer (xeroxerxeroxer.com):
> 
>> Not just when I am away but all the time, so people
know this.
>> Is there a addon or maybe just a function that does
this?
> 
> There is autowhois.pl on the scripts pages. It can be
very easily
> adapted to do what you want, just change the line 
> 
>   $server->command("whois $nick");
> 
> to something like
> 
>   $server->say("msg $nick Yadayada foo");
> 
> HTH,
> Sander.


Re: Auto-respons on pm
country flaguser name
United Kingdom
2007-08-20 07:52:32
On Sat, Aug 18, 2007 at 11:21:13PM +0200, XeroXer  XeroXer
wrote:
> Hi there
> I am looking for a feature that many BNC's provide.
> As soon as someone PM's me I want to start the
conversation with a 
> certain string.
> 
> Let's say I want everyone that PM's me to see the
text:
> "Hi there! I will get to you as soon as I can,
please type your full 
> question here so that I may help you faster"
> 
> Not just when I am away but all the time, so people
know this.
> Is there a addon or maybe just a function that does
this?

  All you should need is a quick script like:

...

sub new_query_response
{
	my ($data, $server, $witem) = _;

	$query_nick = ${$data}{'name'};

	...
}
Irssi::signal_add_last('query created',
&new_query_response);

HTH,

-Ath
-- 
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
                  Finger athan(at)fysh.org for PGP key
	   "And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my
confidence." Paula Cole - ME
Re: Re: Auto-respons on pm
country flaguser name
Sweden
2007-08-21 06:52:38
Hi
Should I create a completely new script with just that in
it?
And what should be placed at the ...'s?
I'm not good at the scripting part of irssi but I really
want this thing.

Best regards
XeroXer


Athan wrote:
> On Sat, Aug 18, 2007 at 11:21:13PM +0200, XeroXer  XeroXer
wrote:
>> Hi there
>> I am looking for a feature that many BNC's
provide.
>> As soon as someone PM's me I want to start the
conversation with a 
>> certain string.
>>
>> Let's say I want everyone that PM's me to see the
text:
>> "Hi there! I will get to you as soon as I can,
please type your full 
>> question here so that I may help you faster"
>>
>> Not just when I am away but all the time, so people
know this.
>> Is there a addon or maybe just a function that does
this?
> 
>   All you should need is a quick script like:
> 
> ...
> 
> sub new_query_response
> {
> 	my ($data, $server, $witem) = _;
> 
> 	$query_nick = ${$data}{'name'};
> 
> 	...
> }
> Irssi::signal_add_last('query created',
&new_query_response);
> 
> HTH,
> 
> -Ath


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )