| View previous topic :: View next topic |
| Author |
Message |
TeRRaNoVA Voice
Joined: 16 May 2005 Posts: 10
|
Posted: Tue Apr 18, 2006 3:24 pm Post subject: looking for 2 script (tcl) |
|
|
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 |
|
 |
CuteBangla Halfop
Joined: 27 Feb 2006 Posts: 58 Location: Dhaka, Bangladesh
|
Posted: Wed Apr 19, 2006 4:42 pm Post subject: Re: looking for 2 script (tcl) |
|
|
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 |
|
 |
|