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.

How to test tcl scripts

Discussion of Eggdrop's code and module programming in C.
Post Reply
t
trivium1981
Voice
Posts: 3
Joined: Wed Dec 12, 2018 9:28 pm

How to test tcl scripts

Post by trivium1981 »

Hi is there any program to test tcl scripts without using eggdrop and connectiong to irc? I am new to this thing and when I test the tcl script on eggdrop I have to connect to the bot and irc to test it. Can I do it offline using only my computer? Like making website using microsoft's frontpage (Old School) and have it tested offline.
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Apart the tclsh envroiment? I honestly don't know. Since the TCL language is used here mostly oriented towards eggdrop you will need to reinvent some of it's functions to mimic some of the results and this helps to some extent, but in the end you will have to load the code on a bot and test stuff out.
Once the game is over, the king and the pawn go back in the same box.
w
willyw
Revered One
Posts: 1196
Joined: Thu Jan 15, 2009 12:55 am

How to test tcl scripts

Post by willyw »

This is not a direct answer to your question. You reminded me of it though.

To test / learn / experiment with a tcl command that is new to me, I've learned to utilize the partyline command:
.tcl

Same for when I want to experiment with a new proc that I'm writing.
Since a proc is just a named group of commands, it can be called just as if you created a new command with the proc name. So I call it using the .tcl command.

It's quick and easy.

The errors show up, I debug, and try again. Once I get past it, THEN I try it with the full script, however it is designed to be used.



I hope this helps.
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