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 

looking for 2 script (tcl)

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


Joined: 16 May 2005
Posts: 10

PostPosted: Tue Apr 18, 2006 3:24 pm    Post subject: looking for 2 script (tcl) Reply with quote

hello,

script 1:

I`m looking for a script that when my bot say in #channel.. like;
-( 4-T-E-S-T- )- bla bla bla bla bla (that whole line -( 4-T-E-S-T- )- bla bla bla bla ) is added to a .dat or .text files (db)

Script 2:

need to be a script that reeds the last line from above script when user types in #channel... !last or !news the bot msg the latest line from that .dat or .text file (db)

becuase my other bot is running on difrent network!


Thx
Back to top
View user's profile Send private message
CuteBangla
Halfop


Joined: 27 Feb 2006
Posts: 58
Location: Dhaka, Bangladesh

PostPosted: Wed Apr 19, 2006 4:42 pm    Post subject: Re: looking for 2 script (tcl) Reply with quote

Script 1 Mayb

Code:
set logfile "/home/xxxx/eggdrop/logs/channel.dat"

bind pubm - "#channnel *" cmd:log
 

proc cmd:log {n u h c t} {
        set cmdlog [open ${::logfile} a+]
        set timestamp [clock format [clock seconds]]
   puts $cmdlog "\[$timestamp\] <$n> $t <br>"
        close $cmdlog



TeRRaNoVA wrote:
hello,
script 1:
I`m looking for a script that when my bot say in #channel.. like;
-( 4-T-E-S-T- )- bla bla bla bla bla (that whole line -( 4-T-E-S-T- )- bla bla bla bla ) is added to a .dat or .text files (db)

Script 2:
need to be a script that reeds the last line from above script when user types in #channel... !last or !news the bot msg the latest line from that .dat or .text file (db)

becuase my other bot is running on difrent network!


Thx

_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
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