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.

.tcl script that makes bot to say something...

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
k
kartofeln
Voice
Posts: 2
Joined: Wed Feb 01, 2006 12:52 pm

.tcl script that makes bot to say something...

Post by kartofeln »

Hi,
I´m looking for a .tcl so when I write for example: !hello im my channel, the eggdrop will say what I wrote previously in a .txt or what I predefined in the same .tcl

I was looking TCL tutorials and webs and didn´t found nothing similar.

Would be great if someone can help me

regards
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you didn't look hard enough

Code: Select all

set t {}
foreach e [split [read [open file.txt]] \n] {lappend t $e}
proc foo {n u h c t} {foreach e $::t {puthelp "privmsg $c :$e"}}
bind pub - !hello foo
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
k
kartofeln
Voice
Posts: 2
Joined: Wed Feb 01, 2006 12:52 pm

Post by kartofeln »

thanks a lot!!! *^^*
Post Reply