| View previous topic :: View next topic |
| Author |
Message |
ViciousPiranha Voice
Joined: 17 Dec 2012 Posts: 36
|
Posted: Sat Jan 19, 2013 2:57 pm Post subject: Greet specific users |
|
|
hi, please help... i need a script that when a user with a nickname matching the wild card LOL|* joins the channel #leagueoflegends it will greet him with the message "Welcome to #leagueoflegends, NICKNAME-HERE!"
please help |
|
| Back to top |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Sat Jan 19, 2013 3:01 pm Post subject: |
|
|
Try this
Just edit "#channel" with your channel
| Code: |
bind join - * greet:join
set lol "#leagueoflegends"
proc greet:join {nick uhost hand chan} {
if {[string match -nocase $chan $::lol]} {
if {[string match -nocase "*lol*" $nick] && [string match -nocase "leagueofl*" [lindex [split $uhost @] 0]]} {
putserv "NOTICE $nick :Welcome to $chan, $nick"
}
}
}
|
_________________ https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Last edited by Madalin on Sat Jan 19, 2013 3:38 pm; edited 3 times in total |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sat Jan 19, 2013 3:14 pm Post subject: |
|
|
Another idea:
| Code: |
# January 19, 2012
# http://forum.egghelp.org/viewtopic.php?t=19285
bind join - "#leagueoflegends LOL|*!*@*" do_LOL_greet
proc do_LOL_greet {nick uhost handle chan} {
putserv "privmsg $chan :Welcome to $chan, $nick!"
}
|
|
|
| Back to top |
|
 |
ViciousPiranha Voice
Joined: 17 Dec 2012 Posts: 36
|
Posted: Sat Jan 19, 2013 3:15 pm Post subject: |
|
|
thank you
mind adding a code for an id of *!*leagueofl@* or *!leagueofl@*
plz? |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sat Jan 19, 2013 3:21 pm Post subject: |
|
|
Go to http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html
and scroll down to bind join and read.
Then add binds as you please:
| Code: |
bind join - "#leagueoflegends *!leagueofl@*" do_LOL_greet
|
Be sure to test after you edit and rehash bot. Don't just assume that it will work as you expect, or work at all.
I hope this helps. |
|
| Back to top |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Sat Jan 19, 2013 3:23 pm Post subject: |
|
|
I updated my version to didnt test it but it should work _________________ https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL |
|
| Back to top |
|
 |
ViciousPiranha Voice
Joined: 17 Dec 2012 Posts: 36
|
Posted: Sat Jan 19, 2013 3:23 pm Post subject: |
|
|
| @willyw : It does, thank you very much you make my day!! |
|
| Back to top |
|
 |
|