PDA

View Full Version : TCL Scripting DZsBoT Modification


kraxdaz
10-08-2003, 03:11 PM
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?

Unique
10-08-2003, 03:13 PM
Erm just setup the cmdpre??? :confused:
If thats not what you need you can prolly rip the working code from how thats done too.

kraxdaz
10-08-2003, 03:24 PM
lol yes i saw it too late :)
cmdpre is what i need :) thx gui :p