mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 2
N
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.

Joined: Oct 2003
Posts: 96
J
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.
Joined: Apr 2004
Posts: 2
N
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.
Joined: Dec 2002
Posts: 145
G
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.

Joined: May 2004
Posts: 39
S
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!
Joined: Dec 2002
Posts: 3,547
S
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.

Link Copied to Clipboard