egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to test tcl scripts

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
trivium1981
Voice


Joined: 12 Dec 2018
Posts: 3

PostPosted: Fri Feb 22, 2019 1:10 pm    Post subject: How to test tcl scripts Reply with quote

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.
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3767
Location: Mint Factory

PostPosted: Fri Feb 22, 2019 3:01 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1191

PostPosted: Fri Feb 22, 2019 5:08 pm    Post subject: How to test tcl scripts Reply with quote

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 !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber