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 

i think im in the right place! need script help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
IRC_MAC
Voice


Joined: 13 Dec 2008
Posts: 18

PostPosted: Mon Jan 05, 2009 10:04 pm    Post subject: i think im in the right place! need script help Reply with quote

I am requested by my group to write a tcl script for our eggdrop bot. i was wondering? where do i start and what do i start reading? I need this bot to either do alot of things or make lots of bots, I dont know. i never wrote anything like this before. so what you say guys? can you help me? should i tel you what kind of tcl sripts i need. so you know what i have to read? or are all commands pretty basic and straight forward? where do i get a list of all the commands for tcl scripting? am i even asking the right questions? i told you i need help!!
Back to top
View user's profile Send private message Send e-mail
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Tue Jan 06, 2009 12:31 am    Post subject: Reply with quote

http://letmegooglethatforyou.com/?q=tcl
http://letmegooglethatforyou.com/?q=tcl+commands
http://letmegooglethatforyou.com/?q=eggdrop+tcl
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Tue Jan 06, 2009 7:13 pm    Post subject: Reply with quote

I agree with incith. Much research using the likes of Google will be better in getting you started than a minimalistic answer we could provide here. Nonetheless, you will need the following things :-

1. A reference page for core Tcl, as follows assuming tcl8.4 :-

http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm

2. A reference page for Eggdrop Tcl, as follows assuming eggdrop1.6.19 :-

http://www.eggheads.org/support/egghtml/1.6.19/tcl-commands.html

3. A competent text editor (I advise avoiding notepad or wordpad if you are working in windows) :-

http://www.editpadpro.com/editpadlite.html
http://www.activestate.com/komodo_edit/

Both are free. The former would be a good place to start but is only a text editor which offers no help with syntax. The latter (Komodo Edit) is much more functional in that it will show errors in core Tcl syntax. The latest versions of Komodo Edit are tricky to install because the Tcl Linter (the bit that does the syntax checking) needs to be installed seperately. Hence stick to a basic text editor to get you started.

4. A basic Eggdrop Tcl tutorial such as :-

http://suninet.the-demon.de/index.htm


Good Luck!
Back to top
View user's profile Send private message
Nimos
Halfop


Joined: 20 Apr 2008
Posts: 80

PostPosted: Wed Jan 07, 2009 7:22 am    Post subject: Reply with quote

I started scripting by reading other scripts, and using them as kind of template when writing my first own scripts...

Whenever I needed something I didnt know how to do, I looked in scripts I had, and tried to understand it...it is imho the best way of learning TCL, but it takes long ;D
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Wed Jan 07, 2009 9:12 am    Post subject: Reply with quote

Nimos wrote:
I started scripting by reading other scripts, and using them as kind of template when writing my first own scripts...

Whenever I needed something I didnt know how to do, I looked in scripts I had, and tried to understand it...it is imho the best way of learning TCL, but it takes long ;D

This is a really good approach. If I can add to this, when you are copying commands and code and etc, make sure you go look at the command in the Tcl commands. Learn what that command can do and what its arguments are etc, once you start remembering the commands and re-using them, learning a basic format, it will start to flow.
_________________
; Answer a few unanswered posts!
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 -> Scripting Help 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