egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

!command

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
TheDevil
Voice


Joined: 29 Mar 2008
Posts: 8

PostPosted: Wed Apr 09, 2008 9:30 am    Post subject: !command Reply with quote

I need a script that on someone saying

!website
replys a url
!vacancies
replys a url

Thanks.
Back to top
View user's profile Send private message
helperis
Voice


Joined: 09 Apr 2008
Posts: 5

PostPosted: Wed Apr 09, 2008 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Wed Apr 09, 2008 11:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber