This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

!command

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
T
TheDevil
Voice
Posts: 8
Joined: Sat Mar 29, 2008 7:56 am

!command

Post by TheDevil »

I need a script that on someone saying

!website
replys a url
!vacancies
replys a url

Thanks.
h
helperis
Voice
Posts: 5
Joined: Wed Apr 09, 2008 8:49 am

Post by helperis »

maybe:

Code: Select all

bind pub -|- !website web 
bind pub -|- !vacancies web
proc web {nick host hand chan arg} { 
putserv "NOTICE $nick :www.website.com" 
}
Or

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" 
}
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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"}
        }
}
this makes it really easy to add new items
Post Reply