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!!
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 :-
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.
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
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.