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 

Script Request

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Jack1
Voice


Joined: 16 Feb 2015
Posts: 3

PostPosted: Mon Feb 16, 2015 4:14 pm    Post subject: Script Request Reply with quote

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.

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


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Mon Feb 16, 2015 5:09 pm    Post subject: Re: Script Request Reply with quote

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. Smile

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/1.6.21/tcl-commands.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/1.6.21/tcl-commands.html#bind
and find:
bind cron
as that can be used to do the timed repetitions.

I'm sure there is more.
foreach, chanlist ...
Smile

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.
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 -> Script Requests 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