crymsun wrote:Thanks so much! Tested and worked beautifully.
Good to hear.
And - you're welcome.
Now to compare that one with all the failed attempts to learn "what went wrong" lol
As caesar said - follow that link that I put in a comment in the script.
It's a great reference.
Whenever I'm thinking through just how I want to get something done, and realize I'm going to need to do at least one of the 4 or 5 things described there, I just come here to this forum, to that Tcl FAQ section, and get it in front of me. It's terrible... I've used those things many, many times, and since I don't HAVE to remember them - exactly - , I don't. I just click up those posts.
![Wink ;)](./images/smilies/icon_wink.gif)
It sure beats digging through all my old scripts to find examples.
Next, here are a couple links that I think are essential to open and keep in tabs, handy for quick reference, whenever one is messing with Tcl :
The Eggdrop specific Tcl commands:
http://docs.eggheads.org/mainDocs/tcl-commands.html
The rest of Tcl commands:
http://www.tcl.tk/man/tcl8.6/TclCmd/contents.htm
Then, there is this old tutorial. Still great for getting one started, and for quick reference for a lot of things.
http://suninet.the-demon.de/
I hope this helps.
As you experiment, feel free to post the code you are working on, with your questions. Somewhere around here is an appropriate section of the forum for that. And somebody will advise you.
If the code gets long (and it will), rather than use the [ code ] [ /code ] bbcode in here, you might like to use:
http://paste.tclhelp.net/
Bonus ! - that pastebin even tries to show you your errors.
Have fun with your bot, and with writing Tcl for it.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !