mIRC Home    About    Download    Register    News    Help

Print Thread
#260262 24/03/17 06:42 AM
Joined: Mar 2017
Posts: 1
P
Mostly harmless
OP Offline
Mostly harmless
P
Joined: Mar 2017
Posts: 1
Hi, I'm trying to get a (what I hope to be) an extremely simple auto respond when someone messages me.

I tried to google since I figured this would be available and I found this:

Quote:
on *:join:#:{
if ($nick != $me) {
if (%automsg == OFF) {
.msg $nick No help for now
}
elseif (%automsg == ON) {
.set -e %channotifi $chan
.msg $nick write your question in one line
}
}
}

on *:text:*:?:{
;notifies the channel where the bot
.msg #channotifi there is a question of $nick in channel %channotifi
;can make it bigger this is the basis for you to make the code has your taste
}


I placed this into the script and tried messaging myself, but nothing popped up.

I'm not very experienced in irc so I'm not sure how to pull this off

Joined: Sep 2015
Posts: 101
Vogon poet
Offline
Vogon poet
Joined: Sep 2015
Posts: 101
You see that is indicated $nick != $me, so the script can't act if you hop (or join) the channel. Try to join with another nick or ask for somebody to join your channel. Depending what you set in the %automsg variable, the script will send the respective message to the channel when somebody joins the channel.

on *:text:*:?: means when somebody writes you in query (PM).

Last edited by klez; 24/03/17 10:19 AM.

Link Copied to Clipboard