mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2016
Posts: 5
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Apr 2016
Posts: 5
I'm designing a twitch bot, I have a few users who I would like to greet with a specific message when they join. I have the following code but it doesn't seem to work

on !*:JOIN:#: {
if($nick==userName){
msg $chan Custom Greeting
}
}

any ideas?

Joined: Dec 2015
Posts: 36
N
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2015
Posts: 36
Hi Devil,

Try this script and see if this is what you are looking for.
NOTE username, username 1 and username 2 should be replaced with what usernames you want and the custom greetings you want. Let me know if this works, I haven't tested it. Also take note, your brackets cannot be placed together like you have them.

Code:

on !*:JOIN:#: {

if ($nick == username) { msg $chan This is user's greeting. }
elseif ($nick == username1) { msg $chan This is user2's greeting. }
elseif ($nick == username2) { msg $chan This is user3's greeting. }
}



Last edited by Netct25; 19/04/16 10:12 PM.

Link Copied to Clipboard