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 !