mIRC Homepage
Posted By: FireBrick A AUTOMATIC 'I'm AFKB type message - 27/02/03 01:32 PM
How would I write a remote that would send a message either to the whole channel or to a private if some one sent me a message or used my 'nick' in a sentence.
For example:
<Firebrick> Are you here?
or
< whoever> Has anybody seen <FireBrick> lately?

I stay connected so when I return I can scroll for the data I missed but frequently people query me and I'd like to let them know I'm AFKB.
A auto message like <FireBrick> is AFKB but will return by "inserted date/time"

I know I could use the change nick to AWAY, but people still query anyway and on the channel I use, most people don't bother switching to AWAY and back.
If anyone knows if this script/remote already exists, I'd appreciate knowing about it.

Thank you for your consideration.
Posted By: naki Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 01:40 PM
umm yea it's called /away "insert text here"
Posted By: FireBrick Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 01:54 PM
Thanks, didn't know that existed.
Posted By: FireBrick Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 02:14 PM
that didn't seem to work the way I expected.
I asked someone to use my nick in a sentence and I was hopeing that my system would send that message to the channel that I was AFKB but would return later.

I saw no reply to the channel

the /away "message" was transmitted to the channel when I invoked it but when someone used my nick the message was not automatically responded to by my system

Maybe this can't be done?
again, thanks for your time
Posted By: MonoSex Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 03:46 PM
Code:
on *:TEXT:*[color:green]yournick[/color]*:#:{
  if ($away) { notice $nick [color:green]i'm away blah blah.... ;)[/color] }
}

Works when you're /away.
Posted By: xrn0id Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 04:40 PM
i think that he wants it if he has has it set, taht is somebody says his name in teh channel (Mono Coverd that) and when somebody pm's him, he wants it to tell the person that he is away. ex:

Code:
on *:TEXT:*:?: {
[color:green];this can be changed by somebody if there is a $away feature, or equiv.[/color]
if (%away == on) {
msg $nick Im not here right now, but ill be back around "date/time"
}
Posted By: FireBrick Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 06:35 PM
I think you understand what I want.
in the aliase section I have
/away /me [Not here, back in a few hours]

If I type /away that message is sent to the channel I'm in. Or I can click on the Commands, Away, ON and this will send my message.

So now what I had hoped to do is:
If someone PM's me or uses my Nick in the channel I keep open, my computer will reply [Not here, back in a few hours] again.

Each time someone says: [Nick] are you here?
Or says to someone "Have you seen [Nick]?
My system will reply to the channel if that's where the query came from or if the query came in a private message, reply to the private message.

Sort of like those voice mails, "I'm not at my desk etc."

So far I can't seem to get any of the previous suggestion to reply if someone uses my Nick.
BTW: my nick is W9OL which is registered and the only one I use.

I sure hope this explains what I'm trying to do.

I'm sorry I'm causing so much trouble.

Posted By: MonoSex Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 09:12 PM
If you don't like any of those scripts, maybe you could read the help file and write one yourself?
Posted By: FireBrick Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 10:12 PM
I'm sorry. I never said I didn't like the scripts.
I just can't get them to work. At all, None of them.

Please I'm not trying to be unapreciative.
But I'm obviously typing something wrong or puting it in the wrong area.

Sorry to bother you.
Posted By: Poppy Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 10:39 PM
If you paste the code exactly as it is written above into your remotes, it should work. Make sure you type /remote on - alternatively there are many addon away scripts here - have a look at the reviews and see if any of them have what you're looking for. smile
Posted By: NightChillz Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 10:43 PM
on *:text:*yournick*:*:{
if ($away) {
msg $nick I Am Away: " $awaymsg " Been Gone For: $duration($awaytime)
}
}

How bout You Take A Look at The Help File Once In a While:

/help

/help $away
Posted By: The_Game Re: A AUTOMATIC 'I'm AFKB type message - 27/02/03 10:48 PM
Try this...If you know how to make a popup then well heres something simple

Away
.On:/away stepped away from keyboard! | /nick <yournick>[afk] | /timer1 0 1800 /ame is away from the keyboard!
.Off:/away | /nick <yournick> | /timer1 off | /ame has returned!
-

When you choose on it marks you away and it changes yournick to what you want (yoda is now yoda[afk] and will repeat every half hour or so that youre away from the keyboard. When you return by choosing off it will return your nick the way it was and stop the repeat message.

Now in the remote section of your script you want to add this


on *:TEXT:*:?: {
;this can be changed by somebody if there is a $away feature, or equiv.
if (%away == on) {msg $nick Im not here right now, but ill be back around "date/time"}

If you notice this was given above. That...I don't know if it will work or not but its worth a shot....I hope this helps oh and thank who evers on text example that is too
Posted By: MonoSex Re: A AUTOMATIC 'I'm AFKB type message - 28/02/03 12:05 AM
Quote:
in the aliase section I have
/away /me [Not here, back in a few hours]

The problem is - that you've replaced /away command with your alias.
And it's not setting you away, so the $away and other stuff will not work.
Try to replace your alias with this:

Code:
/away { 
  me [Not here, back in a few hours]
  .quote away [Not here, back in a few hours]
}
Posted By: FireBrick Re: A AUTOMATIC 'I'm AFKB type message - 28/02/03 12:08 AM
Ok guys. I give up.
I've tried every script that's been offered.

I appreciate all your attempts.
I've been looking at the help files all day.
And with the different syntax used by the different scripts I'm now hopelessly confused.

I'll start fresh tomorrow.
I can send /away from the command line
and it will send my away message.to the channel.
But if anyone in the channel types my nick, my remote does not respond with a reply that I'm away and will be back etc.

It like my system doesn't realize that it's AWAY.

Sorry to bother you guys, I'm a little old and this isn't coming easily. lol
Posted By: FireBrick Re: A AUTOMATIC 'I'm AFKB type message - 28/02/03 01:10 AM
Eureka.
You found the problem.

It was the alias.
I appreciate it.

I owe you a beer, or two, or well you get the idea.
Posted By: FireBrick Re: A AUTOMATIC 'I'm AFKB type message - 28/02/03 03:50 PM
Almost working the way I want it.
As the alias was the problem. I just eliminated it.

This is what I have.

on 1 *:TEXT:*W9OL*:*:{
if ($away) { notice $nick Robot Message: I'm AWFK, back later.
/msg $nick [From W9OL : $nick I'm not available right now. Please leave a message at the beep. 4BEEP!0]

}
I find that anyone who uses my Nick in any room I'm connected to gets a message that I'm away IN THAT ROOM
and also a PM telling them to leave me a message..

I also get a line in my status window telling me who called me.

I'd like one more thing.
I'd like the line in my status window to also appear in the #channel that the person called me in.

but the help files say that notice or action won't be seen in a channel.
I need a way to determine the channel that initiated the response and put a message in that channel that only I can see in addition to the Status Window as I may have it covered and could miss it.

As you see, I have been reading the Help files.

As always, Please and thank you

PS: What is the purpose of the 1 in ON 1????
Script seems to work with or without it.

Posted By: The_Game Re: A AUTOMATIC 'I'm AFKB type message - 28/02/03 11:04 PM
well you could use the -a switch to send it to the active window (more than likely the channel) rather than the -s switch for the status just add in the command somewhere in the code

/echo -a someone called

something like that maybe goin off the top of my head here but if youre wanting to read up on it in the help file look under "/echo"
Posted By: Nimue Re: A AUTOMATIC 'I'm AFKB type message - 01/03/03 03:18 AM
Code:
on *:TEXT:*W9OL*:[color:red]#[/color]:{
  if ($away) {
    .notice $nick Robot Message: I'm AWFK, back later. $+([,$awaymsg,])
    echo $color(highight) -eti $chan * Robot Message sent to $nick
  }
}
on *:open:?:{
  msg $nick [From W9OL : $nick I'm not available right now. Please leave a message at the beep. 4BEEP!0]
}
© mIRC Discussion Forums