I need a script that on someone saying
!website
replys a url
!vacancies
replys a url
Thanks.
Code: Select all
bind pub -|- !website web
bind pub -|- !vacancies web
proc web {nick host hand chan arg} {
putserv "NOTICE $nick :www.website.com"
}
Code: Select all
bind pub -|- !website web
bind pub -|- !vacancies web2
proc web {nick host hand chan arg} {
putserv "NOTICE $nick :www.website.com"
}
proc web2
putserv "NOTICE $nick :www.website2.com"
}
Code: Select all
bind pub - !website {showurl 0}
bind pub - !vacancies {showurl 1}
proc showurl {w n u h c t} {
switch $w {
0 {putserv "privmsg $c :First website"}
1 {putserv "privmsg $c :Second website"}
}
}