mIRC Home    About    Download    Register    News    Help

Print Thread
on TEXT/JOIN events for specific nicks #107000 06/01/05 12:55 AM
Joined: Apr 2004
Posts: 2
N
necrofile Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
N
Joined: Apr 2004
Posts: 2
I am making a bot for my channel and I want it say and do things when certain people join or when that specific person says something, but I can not for the life of me figure out how or find how on google or searching the forums.

Re: on TEXT/JOIN events for specific nicks #107001 06/01/05 12:59 AM
Joined: Oct 2003
Posts: 96
J
JoeDaddy Offline
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
Code:
on !*:JOIN:#:if ($nick == ISuck) msg # Hey $nick .. do you swallow too??

Code:
on *:TEXT:*help*me*:#:if ($nick == jennifer) describe # helps $nick take her clothes off :p

Last edited by JoeDaddy; 06/01/05 01:06 AM.
Re: on TEXT/JOIN events for specific nicks #107002 06/01/05 01:07 AM
Joined: Apr 2004
Posts: 2
N
necrofile Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
N
Joined: Apr 2004
Posts: 2
It doesn't seem to work. I left out the forward slash before msg, as you did, so could that be the problem?

/edit/
Works now. i just took the ! out

Last edited by necrofile; 06/01/05 01:46 AM.
Re: on TEXT/JOIN events for specific nicks #107003 06/01/05 02:35 AM
Joined: Dec 2002
Posts: 145
G
gemeau50 Offline
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
The only purpose of " ! " is to impede oneself to trigger an event. Unless you want to trigger the event yourself, the " ! " as no bearing.

Re: on TEXT/JOIN events for specific nicks #107004 06/01/05 10:13 AM
Joined: May 2004
Posts: 39
S
Scriptor Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
on *:JOIN:#: {

if ($nick == Gemini-Ty) { msg # [GT] Heya look my favorite person has joined us ^.^! }
elseif ($nick == Skaiba) { msg # [Kuriboh] Woot my brother has joined the chat! ^.^ }
elseif ($nick == Saydin) { msg # hey look it's Seto-K }

}

This is what I had just replace it with the nick and enter message and it works. :tongue:


Do the monkey!
Re: on TEXT/JOIN events for specific nicks #107005 06/01/05 02:00 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Better still...
Code:
alias add { .writeini join.ini Join $1 $2- | .echo -a ** Added $1 ( $+ $2- $+ ) to auto greet list. }
;/add Joe Hello Joe good to see you...... 
alias rem { .remini join.ini Join $1 | .echo -a ** Removed $1 from auto greet list. }
 ;/rem Joe

on !*:JOIN:#: {
  ;Checks whether $nick has an auto-greet profile.
  if ($readini(join.ini,Join,$nick)) { 
   ;$nick does have an auto-greet profile.
    msg $chan $readini(join.ini,Join,$nick) 
    halt 
  }
}

Last edited by SladeKraven; 06/01/05 02:24 PM.