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!
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!