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.

Script Request

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
J
Jack1
Voice
Posts: 3
Joined: Mon Feb 16, 2015 4:12 pm

Script Request

Post by Jack1 »

Hi,

I want to write a TCL script for our bot.

It should scan the channel to see if there are Guest_ nicknames on the channel, and if so set all those nicknames in to one variable and then send a message to the channel.

This is how I see it working.
< +eggdrop> Guest_1050, Guest_3000, Guest_7000, Guest_9050: Hi, you're using a guest nickname! You can change your nickname to something nicer by typing /nick newnickhere.
This will happen every 5 minutes.

Is it possible in TCL?
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: Script Request

Post by willyw »

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.
Post Reply