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 <var>

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


Joined: 18 Jun 2006
Posts: 13

PostPosted: Sun Jul 02, 2006 6:30 pm    Post subject: !command <var> Reply with quote

Well... I just can't find it :S And I don't know wich terms I have to use on google for this:

I want to make this:

!command x


so that !command binds a proc. ( I know how to do that)
and that x stores in variable x

Any help is welcome Smile

thx
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jul 02, 2006 7:37 pm    Post subject: Reply with quote

Your request (it IS a request btw) makes no sense, you need to elaborate more on what you want.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Jul 02, 2006 9:12 pm    Post subject: Reply with quote

There are plenty of public commands scripts in the Tcl Archive, just search for an appropriate one.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
aap
Voice


Joined: 18 Jun 2006
Posts: 13

PostPosted: Mon Jul 03, 2006 7:02 am    Post subject: Reply with quote

thanks....

Am I right this way:
Code:

bind pub - !command hi

proc hi {nick uhand channel host arg} {

blabla...

}


I type => !command var

So that "var" stores in "arg" ?
Back to top
View user's profile Send private message
krimson
Halfop


Joined: 19 Apr 2006
Posts: 86

PostPosted: Mon Jul 03, 2006 8:32 am    Post subject: Reply with quote

"arg" holds everything you type after !command
Back to top
View user's profile Send private message Send e-mail
aap
Voice


Joined: 18 Jun 2006
Posts: 13

PostPosted: Wed Jul 05, 2006 10:35 am    Post subject: Reply with quote

so yes Smile

Thanks a lot
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