PDA

View Full Version : %pwd cookie for dzsBot.tcl


deo
02-27-2005, 11:17 AM
##dzsBot.tcl

find 'proc readlog {} {'
add to end of 'global location lastoct disable default...' 'var1'
so it looks something like 'global location lastoct disab...sgtypes chanlist IMDB_ALT var1'

find 'proc parse {msgtype msgline section} {'
add to the end of 'global variables announce rando..etc' 'var1'
so it looks something like 'global variables announce random mpa...ary var1'

find 'set output [replacevar $output "%relname" $temp]'
insert below 'set output [replacevar $output "%pwd" [lindex $var1 0]]'

now you have '%pwd' cookie, this will be full vfs path on server with release name

bounty
02-27-2005, 11:41 AM
eheh long time i haven't looked in dzsbot ;)

this should work
i'll add for next rls ... but more simple code ;)

something like:
set output [replacevar $output "%pwd" [lindex $msgline 0]]

in proc parse just under line:

set output [replacevar $output "%path" [lindex $split [expr $ll -2]]]

no need to add/use var1 for that and then you can use %pwd as a cookie like %path %release & %relname

thx deo and have fun
bounty