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.

looking for 2 script (tcl)

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
T
TeRRaNoVA
Voice
Posts: 10
Joined: Mon May 16, 2005 6:32 pm

looking for 2 script (tcl)

Post by TeRRaNoVA »

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
C
CuteBangla
Halfop
Posts: 58
Joined: Mon Feb 27, 2006 10:47 pm
Location: Dhaka, Bangladesh
Contact:

Re: looking for 2 script (tcl)

Post by CuteBangla »

Script 1 Mayb

Code: Select all

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