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.

Look for tutorial

Help for those learning Tcl or writing their own scripts.
Post Reply
M
MikeDennis
Voice
Posts: 1
Joined: Thu Dec 07, 2023 6:50 am

Look for tutorial

Post by MikeDennis »

Hey Tcl scripting community! I'm a newcomer to the world of Tcl scripting and excited to delve into this fascinating realm. Any recommendations for beginner-friendly resources, tutorials, or best practices to kickstart my journey? Also, are there any common pitfalls I should be aware of as a newbie?
User avatar
CrazyCat
Revered One
Posts: 1241
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Re: Look for tutorial

Post by CrazyCat »

Hello and welcome.
You can use https://docs.eggheads.org/tutorials/firstscript.html to begin and learn the basics precepts of scripting for eggdrop. And you can also bookmark the "Tcl commands for eggdrop" page which is the bible :)
There is no real "user friendly" doc, but you can alway ask us if you're stopped on a particular point or just need help.

The first advice I can give you is to have a project, and not a too big one.
The second is to see how other scripts works, try to understand them and try to modify :)
w
willyw
Revered One
Posts: 1199
Joined: Thu Jan 15, 2009 12:55 am

Re: Look for tutorial

Post by willyw »

MikeDennis wrote: Wed Feb 21, 2024 2:15 am ...
I'm a newcomer to the world of Tcl scripting
Welcome ! :)
and excited to delve into this fascinating realm.
It sure is.
Any recommendations for beginner-friendly resources, tutorials, or best practices to kickstart my journey?
Yep. :)

This is old. No matter. It is still a nice tutorial. Takes the newcomer by the hand, and starts from nothing.
It's a little step-by-step course.
Start at the beginning, and go through it. Stop often, and go try whatever you think that you have just learned. That is:
have a bot running already somewhere, that you can load practice scripts on. Have it in some channel where there is only you and the bot. :) That way, you won't bother anybody when you crash it. ( Don't ask me how I know. ;) )
http://suninet.the-demon.de/

Next - understand that TCL is really a stand alone scripting language. Eggdrop just uses it. Thus, the eggdrop people have sort of added to it, with some eggdrop specific commands.
Here they are:
https://docs.eggheads.org/using/tcl-commands.html

And here is the rest of TCL :
https://www.tcl.tk/man/tcl8.6/TclCmd/contents.html

Remember when I said, above, to write practice scripts? Here's another suggestion: Have both of those links above open in tabs, ready for quick searching and reference. If I get involved, I still do this! I don't even try to keep it all in my head. Or rather, I don't trust what I have in my head. :) :)
Also, are there any common pitfalls I should be aware of as a newbie?
Probably oodles of them. But they come up either in back-n-forth chat or posts here, and in writing/debugging your little practice scripts.
So - stick around! Bring your questions here to this forum. Make a good clear post describing your snag, and somebody will share their experiences with you. :)

When you get to the point where you are saying: "That's nice... but I wish that I could make my bot ___________" <<<(Fill in the blank)
That's when you are hooked! :)

Have fun !
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Post Reply