Jack1 wrote:Hi,
I want to write a TCL script for our bot.
...
Is it possible in TCL?
Yes, and congratulations on wanting to do it yourself.
Assuming you have completely new to TCL for Eggdrop, here are some links that you will find useful:
http://suninet.the-demon.de/
A great starting place, to learn from scratch.
http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm
The TCL commands.
http://www.eggheads.org/support/egghtml ... mands.html
Eggdrop specific tcl commands.
I suggest you bookmark the above three links, as you will use them often for reference.
http://www.tcl.tk/man/tcl8.5/TclCmd/string.htm#M39
That's probably one specific command that you could be using.
http://www.eggheads.org/support/egghtml ... .html#bind
and find:
bind cron
as that can be used to do the timed repetitions.
I'm sure there is more.
foreach, chanlist ...
If you have a time of day that you are usually online on IRC, let me know where and when, and perhaps we can chat about it soon.
If not, as you work on it, post your code here, and somebody can see it and comment on it for you.