| View previous topic :: View next topic |
| Author |
Message |
TheDevil Voice
Joined: 29 Mar 2008 Posts: 8
|
Posted: Wed Apr 09, 2008 9:30 am Post subject: !command |
|
|
I need a script that on someone saying
!website
replys a url
!vacancies
replys a url
Thanks. |
|
| Back to top |
|
 |
helperis Voice
Joined: 09 Apr 2008 Posts: 5
|
Posted: Wed Apr 09, 2008 9:48 am Post subject: |
|
|
maybe:
| Code: | bind pub -|- !website web
bind pub -|- !vacancies web
proc web {nick host hand chan arg} {
putserv "NOTICE $nick :www.website.com"
} |
Or
| Code: | 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"
} |
|
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Apr 09, 2008 11:22 am Post subject: |
|
|
| Code: | 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"}
}
} |
this makes it really easy to add new items |
|
| Back to top |
|
 |
|