TCL Scripting DZsBoT Modification
i want modify dzsbot and put somes variables here
bind pub -|- [set cmdpre]%VARrequests proc_requests
bind pub -|- [set cmdpre]%VARsearch proc_search
bind pub -|- [set cmdpre]%VARnukes proc_nukes
i put that in the tcl
set VAR "bot1"
bind pub -|- [set cmdpre]%VARrequests proc_requests
bind pub -|- [set cmdpre]search proc_search
bind pub -|- [set cmdpre]nukes proc_nukes
################################################## #######
# CONVERT BASIC COOKIES TO DATA #
################################################## #######
proc basicreplace {strin section} {
global sitename
set output [replacevar $strin "%VAR" $VAR]
these change will make if i type !bot1Rrequests on the chan there is only the bot1 answer as though iobanana
but it does not seem to replace %VAR by $VAR variable
someone can help me?
|